mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-01-22 21:51:10 +00:00
Edited ch07.asciidoc with Atlas code editor
This commit is contained in:
parent
ff3472c3eb
commit
02cf61ecef
@ -570,19 +570,19 @@ Here's the redeem script that Mohammed designs to achieve this:
|
|||||||
.Variable Multi-Signature with Timelock
|
.Variable Multi-Signature with Timelock
|
||||||
[source,linenum]
|
[source,linenum]
|
||||||
----
|
----
|
||||||
IF
|
01 IF
|
||||||
IF
|
02 IF
|
||||||
2
|
03 2
|
||||||
ELSE
|
04 ELSE
|
||||||
<30 days> CHECKSEQUENCEVERIFY DROP
|
05 <30 days> CHECKSEQUENCEVERIFY DROP
|
||||||
<Abdul the Lawyer's Pubkey> CHECKSIGVERIFY
|
06 <Abdul the Lawyer's Pubkey> CHECKSIGVERIFY
|
||||||
1
|
07 1
|
||||||
ENDIF
|
08 ENDIF
|
||||||
<Mohammed's Pubkey> <Saeed's Pubkey> <Zaira's Pubkey> 3 CHECKMULTISIG
|
09 <Mohammed's Pubkey> <Saeed's Pubkey> <Zaira's Pubkey> 3 CHECKMULTISIG
|
||||||
ELSE
|
10 ELSE
|
||||||
<90 days> CHECKSEQUENCEVERIFY DROP
|
11 <90 days> CHECKSEQUENCEVERIFY DROP
|
||||||
<Abdul the Lawyer's Pubkey> CHECKSIG
|
12 <Abdul the Lawyer's Pubkey> CHECKSIG
|
||||||
ENDIF
|
13 ENDIF
|
||||||
----
|
----
|
||||||
|
|
||||||
Mohammed's script implements three execution paths using nested +IF...ELSE+ flow control clauses.
|
Mohammed's script implements three execution paths using nested +IF...ELSE+ flow control clauses.
|
||||||
|
Loading…
Reference in New Issue
Block a user