Why Nostr? What is Njump?
2023-01-16 14:15:59
in reply to

dave on Nostr: This type of script would require both an OP_CHECKLOCKTIMEVERIFY command as well as ...

This type of script would require both an OP_CHECKLOCKTIMEVERIFY command as well as the OP_CHECKMULTISIG command. To have it require 5-of-5 signatures for immediate spending, 4-of-5 signatures after 3 months, 3-of-5 after 4 months, 2-of-5 after 5 months and 1-of-5 after 6 months, the script would look something like this:

OP_IF
OP_2
<public key 1>
<public key 2>
<public key 3>
<public key 4>
<public key 5>
OP_5
OP_CHECKMULTISIG
OP_ELSE
OP_2
<public key 1>
<public key 2>
<public key 3>
<public key 4>
<public key 5>
OP_4
OP_CHECKLOCKTIMEVERIFY
OP_3
OP_2
<public key 1>
<public key 2>
<public key 3>
<public key 4>
<public key 5>
OP_3
OP_CHECKLOCKTIMEVERIFY
OP_4
OP_2
<public key 1>
<public key 2>
<public key 3>
<public key 4>
<public key 5>
OP_2
OP_CHECKLOCKTIMEVERIFY
OP_5
OP_2
<public key 1>
<public key 2>
<public key 3>
<public key 4>
<public key 5>
OP_1
OP_CHECKLOCKTIMEVERIFY
OP_ENDIF
OP_CHECKMULTISIG
Author Public Key
npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4