20

从0到1简易区块链开发手册V0.3-数据持久化与创世区块-暗黑魔君腾云端

 5 years ago
source link: http://blog.51cto.com/clovemfong/2162169
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在比特币世界中,获取区块记账权的过程称之为挖矿,一个矿工成功后,他会把之前打包好的网络上的交易记录到一页账本上,同步给其他人。因为这个矿工能够最先计算出超难数学题的正确答案,说明这个矿工付出了工作量,是一个有权利记账的人,因此其他人也会同意这一页账单。这种依靠工作量来证明记账权,大家来达成共识的机制叫做“工作量证明”,简而言之结果可以证明你付出了多少工作量。Proof Of Work简称“PoW”,关于其原理跟代码实现,我们在后面的代码分析中进行讲解说明。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK