主页 > imtoken钱包最新版本 > 比特币区块链格式(完整版).xls

比特币区块链格式(完整版).xls

imtoken钱包最新版本 2023-07-17 05:09:29

Block ChainBlock ChainBlock ChainMagic Number4Magic Number0xD9B4BEF9Block Size4Block SizeBlock Head80Block HeadBlock Body-Block BodyBlock HeadBlock Head Version4Block Head VersionPrev Block Hash32Previous Block Headhash256hash256(x)=sha256(sha256(x) ))Merkle Root Hash32交易内容hash256Time4UNIX一月1秒起的秒数, 1970 Bits4 目标值用于标记挖矿难度 Nonce4 随机数用于调整当前区块头 hashBlock Body 区块体 Transactions Counter1-9 交易顺序 Quantity 变量 Integer Type Merkle Root- 交易内容 Merkle Root 交易内容 Transactions 1- 交易1 挖矿奖励(Coinbase) Transactions 2- transaction 2…………Transactions n- transaction nTransactions transaction version4 transaction version Inputs Counter1 -9 Income Slip Quantity Variable Integer Type Inputs Detail-收入单内容 Outputs Counter1-9 Expenditure Slip Quantity 可变整数类型 Outputs详情-Expe nditure sleep Content Lock Time4 Lock Time 从当前时间开始不能用于支出的秒数 Inputs Detail 收入单内容 Inputs 1-收入单 1Inputs 2-收入单 2…………Inputs n-收入单 nOutputs Detail 支出单内容Outputs 1-支出单1Outputs 2-支出单2…………Outputs n-支出单nInputs income slip Previous tx Hash32 reference Transaction order hashPrevious Output Index4 reference transaction order 支出单索引号 Inputs Script Length1-9 income script length Variable Integer type Inputs Script- income script Sequence Number4 序列号 0xFFFFFFFFOutputs expenditure order Amount8 比特币数量单位:1 Satoshi = bitcoin Outputs Script Length1- 9 Expenditure Script Length Variable Integer Type Outputs Script- Expenditure Script In puts Script (Coinbase) income script (mining) Signature Length1- 9 (1) 签名长度 0x48Signature72 signature Outputs Script (Coinbase) 支出脚本 (mining) Pub key Length1-9(1) 公钥长度 0x41Pubkey65 公钥 OP_CHECKSIG1 operator(校验签名) 0xACInputs Script (Standard) 收入脚本(default) Signature Length1-9(1) 签名长度 0x48Signature72 signature PubKey Length1-9(1) 公钥长度0x41Pubkey65 public key Outputs Script (Standard) expendent script (default) OP_DUP1 operator (copy stack) 0x76 OP_HASH1601 operator (hash 160) 0xA9 PubkeyHash Length1-9 (1) public key hash160 length 0x14 PubkeyHash20 public key hash160 hash160(x) = Ripemd160( sha256(x)) OP_EQUALVERIFY1 operator(检查相等性) 0x87 OP_CHECKSIG1 operator(检查签名) 0xAC Remark 下一个区块头的最大哈希值 = 最后三个字节(目标值)* 2^(8 *(第一个字节(目标值) - 3)) 挖矿难度=下一个区块链区块头哈希最大值/下一个区块头哈希最大值比特币地址='1'+Base58(0+公钥hash160+前四个字节(hash256(0+公钥hash160)))根据第一个字节的可变整数 1,则值为去掉第一个字节后的余数比特币文本比特币文本,否则为第一个字节。

比特币期货对比特币影响_马斯克叫停比特币买车 比特币跳水_比特币文本