Skip to content

Latest commit

 

History

History
65 lines (35 loc) · 1.26 KB

*181 区块链.md

File metadata and controls

65 lines (35 loc) · 1.26 KB

区块链

共有链、私有链和联盟链1

Merkle Tree

** http://blog.bifubao.com/2014/03/16/proof-of-reserves/ **

  • 上一区块头的哈希值
  • 时间戳
  • 挖矿难度值
  • 工作量证明随机数(nonce)
  • 包含该区块交易的梅克尔树的根哈希
  • root node
  • left node

区块

$ bitcoin-cli getblock 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f 
{ 
 "hash" : "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f", "confirmations" : 308321,
"size" : 285,
 "height" : 0,
 "version" : 1,
 "merkleroot" : "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
 "tx" : [ "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b" ],
 "time" : 1231006505,
 "nonce" : 2083236893,
 "bits" : "1d00ffff",
                
 "difficulty" : 1.00000000,
  "nextblockhash" : "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048"
}

比特币证明归属权的示意图如下

img

共识机制

  • 工作量证明机制
  • 权益证明
  • 股份制的权益证明