需要 OP_BLOCKNUMBER 来支持有“时间”限制的交易

中本聪SN-3355

我们不能安全地实现 OP_BLOCKNUMBER。如果网络分裂后发生区块链重组,交易必须仍能进入更晚的区块。OP_BLOCKNUMBER 交易及其所有依赖交易会失效。这对后来持有这些币、但并未参与限时交易的人不公平。

We can't safely do OP_BLOCKNUMBER. In the event of a block chain reorg after a segmentation, transactions need to be able to get into the chain in a later block. The OP_BLOCKNUMBER transaction and all its dependants would become invalid. This wouldn't be fair to later owners of the coins who weren't involved in the time limited transaction.

nTimeLock 的作用正好相反。它是一笔尚未锁定的交易,在截止期限前能不断被新版本替换。只有锁定后,它才能被记录到链上。期限到达时版本最高的那笔会被记录。举例来说,它能用来写一笔托管交易,自动永久锁定并完成——除非在期限前被撤销。这个特性尚未启用或使用,但支持代码已在,之后能实现。

nTimeLock does the reverse. It's an open transaction that can be replaced with new versions until the deadline. It can't be recorded until it locks. The highest version when the deadline hits gets recorded. It could be used, for example, to write an escrow transaction that will automatically permanently lock and go through unless it is revoked before the deadline. The feature isn't enabled or used yet, but the support is there so it could be implemented later.

上下文
译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:21ccc5c9e8df。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

Need OP_BLOCKNUMBER to allow "time" limited transactions

Bitcointalk · 原始链接 ↗ 记录编号 SN-3355

阅读字号

选择适合你的字号,之后阅读会继续使用。