Bitcointalk · Need OP_BLOCKNUMBER to allow "time" limited transactions

中本聪,2010 年 11 月 15 日

SN-3355 已核对来源,附原文与上下文。

阅读语言
中文译文

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

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

ORIGINAL · 英文原文
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 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.
上下文
← 上一条 SN-3355 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-3355