Building Blockchains on the Go
summary
Live demo builds a runnable blockchain distribution in Go using gRPC and protocol buffers and a microservice layout, generating a genesis block named "genesis_hash", hashing blocks with SHA256, and linking them by previous-hash. Implements proto RPCs addBlock and streamGetBlocks, a server listening on :8004 and a client that appends a new block every second and consumes a continuous block stream. The code compiles, the server streams updated blocks, and hashes match in the demo.
AI-written summary · about
chapters (19)
- 0:00Building blockchains on Go
- 2:47Blockchain structure and security
- 9:33Blockchain as database benefits
- 10:14Why Go for blockchain
- 11:58Go routines and compiler
- 12:19gRPC for blockchain microservices
- 14:51gRPC and Protocol Buffers
- 15:13Setting up blockchain project
- 27:46Blockchain data model in Go
- 30:17Block creation and hashing
- 33:57Genesis block and chain
- 36:53Linking blocks and appending
- 38:58gRPC server for blockchain
- 44:04Server methods for blockchain
- 48:43Run server and testing
- 49:06Client to interact blockchain
- 53:18Add blocks from client
- 57:28Stream blockchain data
- 1:01:03Final demo and conclusion








