Reading books is a good way to learn bitcoin, but without the help of code, it is difficult to understand how bitcoin is implemented. Therefore, I want to read the code implementation.
When reading bitcoin core using C + + client, its environment and debugging are really troublesome for me. I can’t understand the code.
Later, I found a complete bitcoin client written in JS, so I decided to use it to study the bitcoin source code to help me understand bitcoin.
- Build nodejs environmenthttps://nodejs.org/zh-cn/
- Download warehouse
$ git clone https://github.com/jiangleo/bitcoin.git
- Start project
$ cd bitcoin $ npm install $ node index.js
Source code study class of blockchain workshop Jiang Hongwei