Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Blockchain Programming with JavaScript

You're reading from   Learn Blockchain Programming with JavaScript Build your very own Blockchain and decentralized network with JavaScript and Node.js

Arrow left icon
Product type Paperback
Published in Nov 2018
Publisher Packt
ISBN-13 9781789618822
Length 252 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Eric Traub Eric Traub
Author Profile Icon Eric Traub
Eric Traub
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Setting up the Project FREE CHAPTER 2. Building a Blockchain 3. Accessing the Blockchain through an API 4. Creating a Decentralized Blockchain Network 5. Synchronizing the Network 6. Consensus Algorithms 7. Block Explorer 8. In conclusion... 9. Other Books You May Enjoy

What this book covers

Chapter 1, Setting Up the Project, covers what a blockchain actually is and enables readers to understand how it functions. Then, you'll get to learn how to set up a project in order to create your very own blockchain.

Chapter 2, Building a Blockchain, covers how to add various functionalities to your blockchain. You will implement the functionalities in the blockchain, creating some amazing methods such as createNewBlock, creatNewTransaction, and getLastBlock. Once these methods are added to the blockchain, you will test them to verify that they are working perfectly. Also, you'll get to learn about the hashing method, that is, SHA256 hashing, and then implement a method to generate a hash for your block data. Also, you'll get to explore what a proof of work is, how it benefits the blockchain, and how to implement it.

Chapter 3, Accessing the Blockchain through an API, explains how to set up Express.js in your project, as well as how to use it to build the API/server. Then, you will build various server endpoints for your blockchain and test these endpoints to verify whether or not they are working properly.

Chapter 4, Creating a Decentralized Blockchain Network, covers how to set up a decentralized network for your blockchain. In this chapter, you will get to learn a lot of new concepts related to how to set up various nodes and interconnect them to form a network. You'll also define various endpoints, such as /register-and-broadcast-node, /register-node, and /register-nodes-bulk. These endpoints will assist you in implementing the decentralized blockchain network.

Chapter 5, Synchronizing the Network, explains how to synchronize the entire decentralized blockchain network so as to have the same transaction data and blocks on all the nodes in the blockchain. You'll implement network synchronization by refactoring the endpoints to broadcast the data to all the nodes present in the network.

Chapter 6, Consensus Algorithm, explains how to build your own consensus algorithm, which implements the longest chain rule. Through implementing this algorithm, you will have built a blockchain that is similar to a real-life blockchain.

Chapter 7, Block Explorer, explains how to build an amazing user interface to explore the blockchain that you have built over the course of the book.

Chapter 8, In Conclusion..., provides a quick summary of everything you will have learned throughout the course of this book. You will also explore what more you can do to improve the blockchain that you have developed.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image