比特币的签名过程

in btc •  7 years ago 

先用私钥签名 对9c50cee8d50e273100987bb12ec46208cb04a1d5b68c9bea84fd4a04854b5eb1 对这串字符加密得出一个值: 3046022100ba1427639c9f67f2ca1088d0140318a98cb1e84f604dc90ae00ed7a5f9c61cab02210094233d018f2f014a5864c9e0795f13735780cafd51b950f503534a6af246aca301 这就是SIG值(签名的结果)。然后用公钥PUCBKEY 03a63ab88e75116b313c6de384496328df2656156b8ac48c75505cd20a4890f5ab解密SIG值如果结果刚好是是9c50cee8d50e273100987bb12ec46208cb04a1d5b68c9bea84fd4a04854b5eb1 。刚好相等OP_CHECKSIG为真。解题完毕!于是这笔钱于是就从BOB所有,转给了Carol,如果Carol愿意,加上Carol自己对 62fadb313b74854a818de4b4c0dc2e2049282b28ec88091a9497321203fb016e 的签名与公钥,就可以花出去了。

(来源知乎)

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @nter! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!