BIP OP_CHECKTEMPLATEVERIFY



Summary:

In a discussion between Jeremy Rubin and Dmitry Petukhov, the concept of an "inverse timelock" was explored. The idea involves a revocation UTXO becoming anyone-can-spend after a timeout and bearing some non-dust amount. Before the timelock expiration, it can only be spent along with the covenant-locked 'main' UTXO via a signature or mutual covenant. After the revocation UTXO is spent, the covenant path that commits to having it in the inputs becomes unspendable, constituting an "inverse timelock." CTV does not enable this because it does not commit to the inputs, leading to a hash cycle for predicting the output's TXID. However, setting up this scheme requires an ordering around when the tx intended to be the inverse lock is set up before creating the tx using it.


Updated on: 2023-06-13T22:30:53.098019+00:00