algorithm-base/animation-simulation/一些分享/区块链详解.md

166 lines
16 KiB
Java
Raw Normal View History

2021-07-23 15:44:19 +00:00
20000
2021-03-19 12:41:03 +00:00
西
****
>
2021-07-23 15:44:19 +00:00
> 2008 11 1 Satoshi Nakamoto P2P foundation 2009 1 3
2021-03-19 12:41:03 +00:00
******2008**************
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/区块.3wdvlln33q60.png)
### 1.西
2021-07-23 15:44:19 +00:00
A,B,C,D A 5 B B CC D **** 1M 4000 ****
2021-03-19 12:41:03 +00:00
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/区块链.2s1tuiwa4ba0.png)
### 2.
2021-07-23 15:44:19 +00:00
A B 10 A 使,
2021-03-19 12:41:03 +00:00
****
### 3.
2021-07-23 15:44:19 +00:00
2008
2021-03-19 12:41:03 +00:00
2021-07-23 15:44:19 +00:00
50 25 12.5
2021-03-19 12:41:03 +00:00
### 4.
2021-07-23 15:44:19 +00:00
50 6 24 365
2021-03-19 12:41:03 +00:00
![_20201218150122](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/微信图片_20201218150122.1hx8euiaa9uo.png)
2021-07-23 15:44:19 +00:00
2100
2021-03-19 12:41:03 +00:00
### 5.
****
### 6.
2021-07-23 15:44:19 +00:00
CPU
2021-03-19 12:41:03 +00:00
** 8 **
[](http://mp.weixin.qq.com/s?__biz=Mzg3NDQ2NDY3MA==&mid=2247486429&idx=1&sn=449b0482f89a4b2778cbd5c5d6dcc67f&chksm=ced11f2cf9a6963ab9ce6331c4bec69775e347ef03e4bae46e93113f6e99d18c83f45359a04c&scene=21#wechat_redirect)》,里面对哈希函数做出了简要描述。下面我们再来了解一下数字摘要。
** Hash **
hash 0
SHA256
![sha256](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/sha256.5veoxktednk0.png)
** + + + **
2021-07-23 15:44:19 +00:00
SHA256 256
2021-03-19 12:41:03 +00:00
2021-07-23 15:44:19 +00:00
SHA256 ** n ** 0 n 0
2021-03-19 12:41:03 +00:00
****
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/两次哈希函数.3dv6ep2rqh00.png)
2021-07-23 15:44:19 +00:00
### 7. n 0 n
2021-03-19 12:41:03 +00:00
n 0 1 1/2 n 0 1/2 n
2021-07-23 15:44:19 +00:00
n, 2016 2016 10 10 4
2021-03-19 12:41:03 +00:00
n
### 8.
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/公钥私钥.1z7tkrhr4q4g.png)
2021-07-23 15:44:19 +00:00
A 5 B
2021-03-19 12:41:03 +00:00
![广](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/广播.3y66ai91qa00.png)
2021-07-23 15:44:19 +00:00
A A
2021-03-19 12:41:03 +00:00
![广](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/广播对比.76soh60sm2s0.png)
2021-07-23 15:44:19 +00:00
A A
2021-03-19 12:41:03 +00:00
### 9. 5
2021-07-23 15:44:19 +00:00
A B C 5 ****
2021-03-19 12:41:03 +00:00
#####
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/追溯.4lbdktlb5re0.png)追溯
2021-07-23 15:44:19 +00:00
A A
2021-03-19 12:41:03 +00:00
#####
2021-07-23 15:44:19 +00:00
963 ****
2021-03-19 12:41:03 +00:00
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/双重支付.2ff4ejsp3esk.png)双重支付
2021-07-23 15:44:19 +00:00
A 5 广广 A 5 广
2021-03-19 12:41:03 +00:00
D 广 A C D D D C 5 B
### 10.
A B
****
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/最长链.608rywpq68g0.png)最长链
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/photo/红色块分支.72gt7kf4gzo0.png)
A A
<u></u>
2021-07-23 15:44:19 +00:00
广 200