请选择 进入手机版 | 继续访问电脑版

4Ameta

 找回密码
 立即注册
搜索
查看: 108|回复: 0

write a blockchain in Python【0】

[复制链接]

8

主题

8

帖子

47

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
47
发表于 2022-9-2 07:06:01 | 显示全部楼层 |阅读模式
In the past two years, blockchain has been a hot industry.
Both technical and non-technical personnel know such a revolutionary technology.
There are many articles and books about blockchain, but practice will give you a better understanding.
This serial post will use Python 3 to create a simple blockchain to demonstrate how blockchain works.
---------------------------------------------------------------------------------------


This forum post will be divided into four parts:
-Create a basic blockchain
-Realize consensus algorithm (POW workload proof is adopted in this paper)
-Realize trading and mining rewards
---------------------------------------------------------------------------------------

#1. Create a basic blockchain
To put it simply, blockchain is actually a decentralized public database linked by data blocks.
After data blocks are added to the blockchain, they will not be changed, which depends on the consensus mechanism of the blockchain.
Of course, everything can not be absolute.
For example, under pow, if you use more than half of the computing power of the whole network, it is possible to change the data on the chain.
But the benefits of reaching this condition and making data changes can not catch up with the price you pay.


next lesson>>



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|4ameta

GMT+8, 2022-10-4 12:05 , Processed in 0.033995 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表