question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support CHECKLOCKTIMEVERIFY

See original GitHub issue

Would 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:open
  • Created 8 years ago
  • Comments:29 (16 by maintainers)

github_iconTop GitHub Comments

7reactions
dabura667commented, Dec 28, 2015

Or rather, umm, temporary loss?

0reactions
btcdrakcommented, May 12, 2017

It would be wonderful to have a tickbox on https://coinb.in/#newTimeLocked to use OP_CHECKSEQUENCEVERIFY vs OP_CHECKLOCKTIMEVERIFY @OutCast3k

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found