hexresearch / hschain-utxo

UTXO-based contracts for hschain
0 stars 0 forks source link

relative timelocks: Implement something similiar to CheckSequenceVerify in bitcoin #165

Closed anton-k closed 3 years ago

anton-k commented 3 years ago

for now w ehave only absolute timelocs that we can check with getHeight. But some useful applications like channels or lightning require to check relative timestamps. We need to delay spending of the output with time of postage of the TX to blockchain.

I think simplest solution would be to create global variable getPostTxTime. So that we could use it in the ouput scripts. This time is not known on the time of postage. It's placeholder for time of verification.