-
第一步:小白首先用自己的密钥R生成了一个哈希值H,然后将哈希值传给小明。
-
第二步:同时小明和小红签署了一个合约(如果小红在2天内能给小明正确的密钥R,小明就给小红转1.1BTC,否则就不给)
-
第三步:然后小白又和小红签署了一个合约(如果1天内小白能给小红密钥R,小红就给小白1BTC,否则就不给)
-
于是,小红作为中间方,拿到小白的密钥R后给到小明,小明在拿到密钥R后与小白给的哈希值一对比,确认小白的身份后即可给小白转账,在整个交易过程中,小明与小红,小白与小红之间所达成的合约就是我们经常说到的哈希时间锁定合约(Hashed timelock contrct)。
新人科普丨什么是闪电网络?
This article is not available in the current language yet. Showing the original version.
2015年2月比特币开发者Joseph Poon和Thaddeus Dryja在论文《The Bitcoin Lightning Network :Scalable off-Chain Instant Payments》中提出了可扩容的链下支付-闪电网络的概念
Share to:
Author: 必查客
Opinions belong to the column author and do not represent PANews.
This content is not investment advice.
Image source: 必查客. If there is any infringement, please contact the author for removal.
Follow PANews official accounts, navigate bull and bear markets together
Recommended Reading
Related Topics
Bitcoin

