- Learn Blockchain Programming with JavaScript
- Eric Traub
- 423字
- 2021-06-10 18:40:32
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.
- iOS面試一戰到底
- R語言數據可視化之美:專業圖表繪制指南
- C語言程序設計教程(第2版)
- Python神經網絡項目實戰
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- Learning Python Design Patterns(Second Edition)
- Raspberry Pi 2 Server Essentials
- C語言程序設計
- Python機器學習算法與實戰
- JAVA程序設計實驗教程
- 組態軟件技術與應用
- Haskell Data Analysis Cookbook
- 劍指大數據:企業級數據倉庫項目實戰(在線教育版)
- C語言程序設計
- Domain-Driven Design in PHP