7.1 C
New York
Sunday, February 23, 2025

locktime – Make signed transaction invalid after specified time


It isn’t attainable to do exactly what you might be asking, however it’s attainable to attain one thing related in precept.

Bitcoin doesn’t have a “invalid after block top/block time” assemble that would forestall a transaction from being included if it’s not mined rapidly.

Nevertheless, you could possibly assemble an output that mirrors the identical situations.

Utilizing OP_CHECKLOCKTIMEVERIFY, you possibly can assemble an output that may be spent by the coordinator for till a particular block top or time, and after that solely be spent by your self.

In idea, this might additionally meet your necessities with out mining the transaction – by offering a signed transaction to your coordinator that creates such an output, they may broadcast it together with a baby transaction consuming that output.

Within the occasion that they don’t have to train that bond, or the timelock has elapsed, then broadcasting it has no profit for them.

If the coordinator isn’t a properly behaving citizen, they may topic you to a griefing assault by broadcasting it even after the timelock has elapsed, costing you transaction charges. Nevertheless, you’ll nonetheless be capable of retrieve the worth of the bond as they’d not be capable of create a transaction to spend it.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles