OutCast3k / coinbin

Javascript Bitcoin Wallet. Supports Multisig, Stealth, HD, SegWit, Bech32, Time Locked Addresses, RBF and more!
https://coinb.in/
MIT License
906 stars 621 forks source link

Support BIP-0112 OP_CHECKSEQUENCEVERIFY #81

Open johtso opened 7 years ago

johtso commented 7 years ago

https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki

Am I right in thinking that this would be quite a simple addition? Allowing the user to choose OP_CSV and specify a time delta in the interface, and then pretty much just swapping OP_CHECKLOCKTIMEVERIFY with OP_CHECKSEQUENCEVERIFY?

dabura667 commented 7 years ago

For creating a P2SH address to send TO this would be as you said, very easy.

However, coinbin also allows sending FROM CLTV as well, which is easy as changing the locktime value... but with CSV we would need to change the input sequence value.

johtso commented 7 years ago

Ah yes, of course, the sending part needs to be taken care of too