Skip to content

Commit

Permalink
Update 三 签名原理.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xixisese authored Mar 26, 2018
1 parent 14b5352 commit 44b8474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions btc/tx/三 签名原理.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@

#### 每个Txin都有一个签名字段。也就是每个输入都要签名一次。一个tx如果包含N笔输入,就要对tx进行N次签名,签名的结果分别写入各Txin对应的scriptSig字段。

#### tx数据包含很多部分,输入输出,locktime等,在构建摘要digest = sha256(tx数据)的过程中,可以指定对tx的指定部分进行摘要,通过设置Signature Hash Types,可以对tx数据的指定部分进行摘要。
#### tx数据包含很多部分,输入输出,locktime等,在构建摘要digest = sha256(tx数据)的过程中,可以指定对tx的指定部分进行摘要,通过设置Signature Hash Types(签名类型),可以对tx数据的指定部分进行摘要。

#### 目前有以下Hash类型
#### 目前有以下签名类型
* SIGHASH_ALL
* SIGHASH_NONE
* SIGHASH_SINGLE
Expand Down

0 comments on commit 44b8474

Please sign in to comment.