support CHECKLOCKTIMEVERIFY
See original GitHub issueWould you consider making a the ability to create some P2SH redeem scripts using CHECKLOCKTIMEVERIFY (NOP2)
I was thinking two variants:
1 Take the standard multisig generator and turn into an IF clause that requires multisig conditions until the locktime expires, then a single address can sign. Something like
IF
<now + 3 months> CHECKLOCKTIMEVERIFY DROP
<Lenny's pubkey> CHECKSIGVERIFY
1
ELSE
2
ENDIF
<Alice's pubkey> <Bob's pubkey> 2 CHECKMULTISIG
2 Simple HODL,
`<expiry time> CHECKLOCKTIMEVERIFY DROP DUP HASH160 <pubKeyHash> EQUALVERIFY CHECKSIG`
3 Trustless payment HODL
IF
HASH160 <Hash160(encryption key)> EQUALVERIFY
<publisher pubkey> CHECKSIG
ELSE
<expiry time> CHECKLOCKTIMEVERIFY DROP
<buyer pubkey> CHECKSIG
ENDIF
Issue Analytics
- State:
- Created 8 years ago
- Comments:29 (16 by maintainers)
Top Results From Across the Web
bips/bip-0065.mediawiki at master · bitcoin/bips - GitHub
CHECKLOCKTIMEVERIFY redefines the existing NOP2 opcode. When executed, if any of the following conditions are true, the script interpreter will terminate with ...
Read more >What is CLTV in Bitcoin? - Bit2Me Academy
Bitcoin integrates many functions, and one of those functions is known as Check Lock Time Verify (CLTV), which makes it possible for unspent...
Read more >How do I use CHECKLOCKTIMEVERIFY to prevent a ...
I'm creating a Bitcoin based lottery application. An entry into the lottery is a transaction spending 1BTC. If someone guesses some arbitrary ...
Read more >Timelock - Bitcoin Wiki
1.1 nLockTime; 1.2 CheckLockTimeVerify; 1.3 Relative locktime; 1.4 CheckSequenceVerify. 2 Far-future locks; 3 See Also; 4 References ...
Read more >Advanced Transactions and Scripting: Check Lock Time Verify ...
Based on a specification in BIP-65, a new script operator called CHECKLOCKTIMEVERIFY (CLTV) was added to the scripting language. CLTV is a per-output ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Or rather, umm, temporary loss?
It would be wonderful to have a tickbox on https://coinb.in/#newTimeLocked to use OP_CHECKSEQUENCEVERIFY vs OP_CHECKLOCKTIMEVERIFY @OutCast3k