比特币创世论文《Bitcoin: A Peer-to-Peer Electronic Cash System》研读之十:值的结合与分离

原文翻译

9. Combining and Splitting Value

Although it would be possible to handle coins individually, it would be unwieldy to make a separate transaction for every cent in a transfer. To allow value to be split and combined, transactions contain multiple inputs and outputs. Normally there will be either a single input from a larger previous transaction or multiple inputs combining smaller amounts, and at most two outputs: one for the payment, and one returning the change, if any, back to the sender.

It should be noted that fan-out, where a transaction depends on several transactions, and those transactions depend on many more, is not a problem here. There is never the need to extract a complete standalone copy of a transaction's history.

9.值的结合与分离

虽然单独的处理每一笔币(交易)是可能的,但为每一笔钱单独进行交易的话就会让转账变得很笨拙。为了允许值的结合与分离,交易包含多个收入和支出。通常来说,这里既会有有来自于之前的大笔交易对资金也会有多个小笔资金汇集的组合作为输入,而最主要的两项输出:一是支付的资金,另一项是找零,如果有的话,就会退回到支付账户。

当一笔交易建立在几笔交易的基础上,而那些交易又建立在更多的交易之上时应该注意输出,这不会成为问题。永远不需要提取事务历史的完整独立副本。

细节解读


《Bitcoin: A Peer-to-Peer Electronic Cash System》论文原文地址如下:https://bitcoin.org/bitcoin.pdf


版权所有声明

版权所有归属作者,未经允许不得转载、复制或用作它途。否则作者将具有追究法律责任的权利。

Copyright Clarify

Copyright ownership belongs to the author, shall not be reproduced, copied, or used in other ways without permission. Otherwise, the author will have the right to pursue legal responsibilities.

猜你喜欢

转载自blog.csdn.net/qq_27467365/article/details/81771936