ark-network / ark

Ark is a layer-two protocol designed to scale Bitcoin transactions
https://arkdev.info
MIT License
80 stars 18 forks source link

Support forfeit with `CHECKLOCKTIMEVERIFY` #389

Open louisinger opened 6 hours ago

louisinger commented 6 hours ago

This PR adds the CLTVMultisigClosure that can be used as a valid forfeit path in VtxoScript.

A CLTV forfeit is invalid until an absolute locktime (block height or block time). The server won't accept any forfeit or redeem transaction using a locked CLTV path. Tested by TestSendToCLTVMultisigClosure.

@tiero @altafan please review