File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ A simple output, paying to Alice might then look like:
138
138
139
139
HASH160 <revokehash> EQUAL
140
140
IF
141
- <Bob key hash >
141
+ <Bob's pubkey >
142
142
ELSE
143
143
"24h" CHECKSEQUENCEVERIFY DROP
144
- <Alice key hash >
144
+ <Alice's pubkey >
145
145
ENDIF
146
146
CHECKSIG
147
147
@@ -153,10 +153,10 @@ With CHECKLOCKTIMEVERIFY, this would look like:
153
153
154
154
HASH160 <revokehash> EQUAL
155
155
IF
156
- <Bob key hash >
156
+ <Bob's pubkey >
157
157
ELSE
158
158
"2015/12/15" CHECKLOCKTIMEVERIFY DROP
159
- <Alice key hash >
159
+ <Alice's pubkey >
160
160
ENDIF
161
161
CHECKSIG
162
162
@@ -181,13 +181,13 @@ Alice might look like the following in Alice's commitment transaction:
181
181
IF
182
182
"24h" CHECKSEQUENCEVERIFY
183
183
2DROP
184
- <Alice key hash >
184
+ <Alice's pubkey >
185
185
ELSE
186
186
<Commit-Revocation-Hash> EQUAL
187
187
NOTIF
188
188
"2015/10/20 10:33" CHECKLOCKTIMEVERIFY DROP
189
189
ENDIF
190
- <Bob key hash >
190
+ <Bob's pubkey >
191
191
ENDIF
192
192
CHECKSIG
193
193
@@ -196,12 +196,12 @@ and correspondingly in Bob's commitment transaction:
196
196
HASH160 DUP <R-HASH> EQUAL
197
197
SWAP <Commit-Revocation-Hash> EQUAL ADD
198
198
IF
199
- <Alice key hash >
199
+ <Alice's pubkey >
200
200
ELSE
201
201
"2015/10/20 10:33" CHECKLOCKTIMEVERIFY
202
202
"24h" CHECKSEQUENCEVERIFY
203
203
2DROP
204
- <Bob key hash >
204
+ <Bob's pubkey >
205
205
ENDIF
206
206
CHECKSIG
207
207
Original file line number Diff line number Diff line change @@ -96,20 +96,20 @@ The following is the "Hashed TIme-Lock Contract" example in [[bip-0112.mediawiki
96
96
IF
97
97
"24h" CHECKSEQUENCEVERIFY
98
98
2DROP
99
- <Alice key hash >
99
+ <Alice's pubkey >
100
100
ELSE
101
101
<Commit-Revocation-Hash> EQUAL
102
102
NOTIF
103
103
"Timestamp" CHECKLOCKTIMEVERIFY DROP
104
104
ENDIF
105
- <Bob key hash >
105
+ <Bob's pubkey >
106
106
ENDIF
107
107
CHECKSIG
108
108
109
109
To create a MAST Root, it is flattened to 3 mutually exclusive branches:
110
- HASH160 <R-HASH> EQUALVERIFY "24h" CHECKSEQUENCEVERIFY DROP <Alice key hash > CHECKSIG
111
- HASH160 <Commit-Revocation-Hash> EQUALVERIFY <Bob key hash > CHECKSIG
112
- "Timestamp" CHECKLOCKTIMEVERIFY DROP <Bob key hash > CHECKSIG
110
+ HASH160 <R-HASH> EQUALVERIFY "24h" CHECKSEQUENCEVERIFY DROP <Alice's pubkey > CHECKSIG
111
+ HASH160 <Commit-Revocation-Hash> EQUALVERIFY <Bob's pubkey > CHECKSIG
112
+ "Timestamp" CHECKLOCKTIMEVERIFY DROP <Bob's pubkey > CHECKSIG
113
113
114
114
which significantly improves readability and reduces the witness size when it is redeemed.
115
115
You can’t perform that action at this time.
0 commit comments