a simple js program to explain how blockchain works
this tiny blockchain project is built using JavaScript, inspired by Building Blockchain in Go. Translate it to JavaScript version and translate these articles to Chinese.
- Basic prototype Chinese
- Proof Of Work Chinese
- Persistence and Cli Chinese
- Transaction Chinese
- Address Chinese
JavaScript is basically a language any programmer can understand. Es6 can help programmer jump out of callback hell. For me it's a big step for JavaScript.
- node 7.0 or above
- git clone https://github.com/jasoncodingnow/blockchain_js.git
- cd blockchain_js
- npm install
- npm test
这个项目是js来实现一个区块链系统。受Building Blockchain in Go 该文章启发,同时,将该作者的文章翻译并且加入自己的js代码重新编排。感谢该作者。
该项目使用的是es6的语法,考虑到js应该是最容易看懂的语言,以及es6目前发展状况非常良好。因此,采用es6的语法来编写该项目。
- node 7.0 以上版本
- git clone https://github.com/jasoncodingnow/blockchain_js.git
- cd blockchain_js
- npm install
- npm test