The basic concept of blockchain is quite simple: a distributed database that maintains a continuously growing list of ordered records…
“This makes understanding blockchains a necessarily harder task, than it must be. Especially source-code-wisely. Here I will go through a super-simple blockchain I implemented in 200 lines of Javascript called NaiveChain.”
- Block structure
- Block hash
- Generating a block
- Storing the blocks
- Validating the integrity of blocks
- Choosing the longest chain
- Communicating with other nodes
- Controlling the nodes