Learn Blockchains by Building One
原文链接 Learn Blockchains by Building One
The fastest way to learn how Blockchains work is to build one
开始之前
区块链(blockchain)是一个不可改变(immutable)、连续(sequential)的链,链内记录着称为区块的元素。其中可以包含交易(transactions)、文件或者任何你想添加的数据,真的!不过,这些区块都是通过 hashes 链在一起的。
如果你不懂 hash 是什么,这里有示例。
准备工作: 基础 python 编写和 http 请求。
本文使用 python3.6+ 和 pip,你还要安装 Flask 和 Requests:
pip install Flask==0.12.2 requests==2.18.4
最终代码: github