Learn Blockchain by Building Your Own in JavaScript

Video description

Develop your own blockchain and decentralized network using the JavaScript programming language

About This Video

  • Build your own fully functional blockchain prototype
  • Learn how the code behind blockchain technology works
  • Discover why blockchain technology is a secure option for storing data
  • Understand how a decentralized blockchain network functions

In Detail

In this course, you will learn how to build your own blockchain and decentralized blockchain network by using the JavaScript programming language. By developing your own blockchain, you will discover the working of blockchain technology and how decentralized blockchain networks function. In addition to this, you'll get to grips with how the code behind these technologies works, along with exploring why blockchain is a secure and valuable technology.

As you progress, this course will help you understand why decentralization is an important feature for securing the blockchain. To build on your knowledge, you'll get up to speed with the whole process of storing, securing, and validating data/transactions on the blockchain. The course covers ES6 code to ensure that you grasp the fundamental concepts effectively.

By the end of this course, you will have built your own blockchain prototype in code.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Introduction
    1. Course Introduction 00:02:58
    2. What You Will Learn in This Course 00:03:04
    3. What is a Blockchain? 00:05:27
    4. Environment Setup 00:04:03
  2. Chapter 2 : Building A Blockchain
    1. Blockchain Introduction 00:01:44
    2. Constructor Function Explanation 00:07:57
    3. Prototype Object Explanation 00:06:08
    4. Blockchain Constructor Function 00:03:42
    5. Create New Block Method 00:09:35
    6. Testing Create New Block Method 00:06:00
    7. Get Last Block Method 00:01:03
    8. Create New Transaction Method 00:06:38
    9. Testing Create New Transaction Method 00:12:21
    10. SHA256 Hashing 00:05:42
    11. Hash Block Method 00:05:42
    12. Testing Hash Block Method 00:05:00
    13. What Is A Proof Of Work? 00:09:24
    14. Proof Of Work Method 00:05:51
    15. Testing Proof Of Work Method 00:08:46
    16. Creating A Genesis Block 00:03:32
    17. Section 1 Wrap-Up 00:00:43
  3. Chapter 3 : Accessing the Blockchain Through An API
    1. Building An API - Introduction 00:01:50
    2. Setting Up ExpressJS 00:03:39
    3. Building the API Foundation 00:03:18
    4. Installing Postman & Body-Parser 00:12:54
    5. Building The "GET /blockchain" Endpoint 00:04:01
    6. Building The "POST /transaction" Endpoint 00:07:54
    7. Building The "GET /mine" Endpoint 00:14:34
    8. Testing the New Endpoints 00:12:50
  4. Chapter 4 : Creating A Decentralized Blockchain Network
    1. Decentralized Blockchain Network - Introduction 00:02:34
    2. Creating Multiple Nodes 00:11:43
    3. Testing the Nodes 00:03:58
    4. Adding The Current Node's Url 00:03:10
    5. New Endpoints Outline 00:08:30
    6. Building "POST /register-and-broadcast-node" Endpoint - Part 1 00:11:10
    7. Building "POST /register-and-broadcast-node" Endpoint - Part 2 00:07:01
    8. Building "POST /register-node" Endpoint 00:06:39
    9. Testing "POST /register-node" Endpoint 00:05:47
    10. Building "POST /register-nodes-bulk" Endpoint 00:08:47
    11. Testing "POST /register-nodes-bulk" Endpoint 00:04:25
    12. Testing All Network Endpoints 00:12:47
  5. Chapter 5 : Synchronizing the Network
    1. Synchronizing the Network - Introduction 00:03:11
    2. Transactions Introduction 00:03:07
    3. Refactoring Create Transaction Method 00:05:18
    4. Building "POST /transaction/broadcast" Endpoint 00:09:06
    5. Refactoring "POST /transaction" Endpoint 00:05:19
    6. Testing Transaction Endpoints 00:08:04
    7. Updating Mining Information 00:03:31
    8. Updating Mining Endpoint 00:10:55
    9. Building "POST /receive-new-block" Endpoint 00:09:04
    10. Testing New Endpoints 00:17:50
  6. Chapter 6 : Consensus
    1. Consensus Introduction 00:04:26
    2. Chain Is Valid Method 00:16:10
    3. Testing Chain Is Valid Method 00:10:43
    4. Building "GET /consensus" Endpoint 00:20:23
    5. Testing "GET /consensus" Endpoint 00:08:09
  7. Chapter 7 : Block Explorer
    1. Block Explorer Introduction 00:02:28
    2. Block Explorer Endpoints Outline 00:03:43
    3. Get Block Method 00:04:39
    4. Building "GET /block/: blockHash" Endpoint 00:06:38
    5. Get Transaction Method 00:06:10
    6. Building "GET /transaction/: transactionId" Endpoint 00:07:00
    7. Get Address Data Method 00:07:51
    8. Building "GET /address/: address" Endpoint 00:09:32
    9. Adding the Block Explorer File 00:05:33
    10. Block Explorer File Explanation 00:04:36
    11. Testing the Block Explorer! 00:10:20
  8. Chapter 8 : Conclusion
    1. Course Recap 00:04:51

Product information

  • Title: Learn Blockchain by Building Your Own in JavaScript
  • Author(s): Eric Traub
  • Release date: February 2020
  • Publisher(s): Packt Publishing
  • ISBN: 9781800209664