Book description
Explore the essentials of blockchain technology with JavaScript to develop highly secure bitcoin-like applications
Key Features
- Develop bitcoin and blockchain-based cryptocurrencies using JavaScript
- Create secure and high-performant blockchain networks
- Build custom APIs and decentralized networks to host blockchain applications
Book Description
Learn Blockchain Programming with JavaScript begins by giving you a clear understanding of what blockchain technology is. You'll then set up an environment to build your very own blockchain and you'll add various functionalities to it. By adding functionalities to your blockchain such as the ability to mine new blocks, create transactions, and secure your blockchain through a proof-of-work you'll gain an in-depth understanding of how blockchain technology functions.
As you make your way through the chapters, you'll learn how to build an API server to interact with your blockchain and how to host your blockchain on a decentralized network. You'll also build a consensus algorithm and use it to verify data and keep the entire blockchain network synchronized. In the concluding chapters, you'll finish building your blockchain prototype and gain a thorough understanding of why blockchain technology is so secure and valuable.
By the end of this book, you'll understand how decentralized blockchain networks function and why decentralization is such an important feature for securing a blockchain.
What you will learn
- Gain an in-depth understanding of blockchain and the environment setup
- Create your very own decentralized blockchain network from scratch
- Build and test the various endpoints necessary to create a decentralized network
- Learn about proof-of-work and the hashing algorithm used to secure data
- Mine new blocks, create new transactions, and store the transactions in blocks
- Explore the consensus algorithm and use it to synchronize the blockchain network
Who this book is for
Learn Blockchain Programming with JavaScript is for JavaScript developers who wish to learn about blockchain programming or build their own blockchain using JavaScript frameworks.
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Setting up the Project
- Building a Blockchain
- Accessing the Blockchain through an API
- Creating a Decentralized Blockchain Network
-
Synchronizing the Network
- Understanding the need to synchronize the network 
- Refactoring the createNewTransaction method and the /transaction endpoint
- Building the /transaction/broadcast endpoint
- Refactoring the /transaction endpoint
- Testing the transaction endpoints
- Updating the mining information
- Building the /receive-new-block endpoint
- Testing the new and updated /mine endpoints
- Summary
- Consensus Algorithms
-
Block Explorer
- What is a block explorer? 
- Defining the block explorer endpoints 
- Building the getBlock method
- Building the /block/:blockHash endpoint
- Defining the getTransaction method
- Building the /transaction/:transactionId endpoint
- Building the getAddressData method
- Developing the /address/:address endpoint
- Adding the block explorer file
- Block explorer file explanation
- Testing our block explorer
- Summary 
- In conclusion...
- Other Books You May Enjoy
Product information
- Title: Learn Blockchain Programming with JavaScript
- Author(s):
- Release date: November 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789618822
You might also like
book
Data Structures and Algorithms with JavaScript
As an experienced JavaScript developer moving to server-side programming, you need to implement classic data structures …
book
Functional Programming in JavaScript
Functional Programming in JavaScript teaches JavaScript developers functional techniques that will improve extensibility, modularity, reusability, testability, …
book
JavaScript Everywhere
JavaScript is the little scripting language that could. Once used chiefly to add interactivity to web …
book
Node.js Web Development
Build scalable web applications using Node.js, Express.js, and the latest ECMAScript techniques, along with deploying applications …