Relative CHECKLOCKTIMEVERIFY (was CLTV proposal)



Summary:

The email thread discusses the possibilities of implementing RCLTV and OP_MATURITY for Bitcoin transactions to make them more secure against reorganization. The implementation requires making information about the prevout's height/time available to VerifyScript(). The suggested interface is: int bitcoinconsensus_verify_script(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen, const unsigned char *txTo, unsigned int nIn, unsigned int txToLen, TxOutputGetter utxoGetter, unsigned nHeight, secp256k1_context_t *ctx, unsigned int flags, bitcoinconsensus_error* err). The discussion also considers the possibility of supporting time-based locks, which may cause incentive issues with mining. The preferred option is to change all clocks to work in blocks instead of minutes.


Updated on: 2023-06-09T18:48:59.256674+00:00