Edited ch07.asciidoc with Atlas code editor

pull/531/head
kristen@oreilly.com 6 years ago
parent ff3472c3eb
commit 02cf61ecef

@ -570,19 +570,19 @@ Here's the redeem script that Mohammed designs to achieve this:
.Variable Multi-Signature with Timelock
[source,linenum]
----
IF
IF
2
ELSE
<30 days> CHECKSEQUENCEVERIFY DROP
<Abdul the Lawyer's Pubkey> CHECKSIGVERIFY
1
ENDIF
<Mohammed's Pubkey> <Saeed's Pubkey> <Zaira's Pubkey> 3 CHECKMULTISIG
ELSE
<90 days> CHECKSEQUENCEVERIFY DROP
<Abdul the Lawyer's Pubkey> CHECKSIG
ENDIF
01 IF
02 IF
03 2
04 ELSE
05 <30 days> CHECKSEQUENCEVERIFY DROP
06 <Abdul the Lawyer's Pubkey> CHECKSIGVERIFY
07 1
08 ENDIF
09 <Mohammed's Pubkey> <Saeed's Pubkey> <Zaira's Pubkey> 3 CHECKMULTISIG
10 ELSE
11 <90 days> CHECKSEQUENCEVERIFY DROP
12 <Abdul the Lawyer's Pubkey> CHECKSIG
13 ENDIF
----
Mohammed's script implements three execution paths using nested +IF...ELSE+ flow control clauses.

Loading…
Cancel
Save