User Tools

Site Tools


Sidebar

Welcome to DIDO WIKI

dido:public:ra:xapend:xapend.b_stds:defact:bitcoin:bips:bip_0065

BIP 0065 - OP_CHECKLOCKTIMEVERIFY (soft fork)

return to the Bitcoin Improvement Proposals

Table 1: Data sheet for OP_CHECKLOCKTIMEVERIFY
Title OP_CHECKLOCKTIMEVERIFY
Layer Consensus (soft fork)
Author Peter Todd
Comments-Summary No comments yet.
Comments-URI https://github.com/bitcoin/bips/wiki/Comments:BIP-0065
Status Final
Type Standards Track
Created 2014-10-01
Post History
Description https://github.com/bitcoin/bips/blob/master/bip-0065.mediawiki
License PD
Note: The following is an excerpt from the official Bitcoin site. It is provided here as a convenience and is not authoritative. Refer to the original document(s) as the authoritative reference.

Abstract

This BIP describes a new opcode (OP_CHECKLOCKTIMEVERIFY) for the Bitcoin scripting system that allows a transaction output to be made unspendable until some point in the future.

Summary

CHECKLOCKTIMEVERIFY redefines the existing NOP2 opcode. When executed, if any of the following conditions are true, the script interpreter will terminate with an error:

  • the stack is empty; or
  • the top item on the stack is less than 0; or
  • the lock-time type (height vs. timestamp) of the top stack item and the nLockTime field are not the same; or
  • the top stack item is greater than the transaction's nLockTime field; or
  • the nSequence field of the txin is 0xffffffff;

Otherwise, script execution will continue as if a NOP had been executed.

The nLockTime field in a transaction prevents the transaction from being mined until either a certain block height, or block time, has been reached. By comparing the argument to CHECKLOCKTIMEVERIFY against the nLockTime field, we indirectly verify that the desired block height or block time has been reached; until that block height or block time has been reached the transaction output remains unspendable

dido/public/ra/xapend/xapend.b_stds/defact/bitcoin/bips/bip_0065.txt · Last modified: 2021/07/27 11:35 by murphy
Translations of this page: