@@ -136,12 +136,12 @@ The commitment transaction will then become:
136
136
"tapleaf_1": "
137
137
# funds go back to us via a second-stage HTLC-timeout transaction (which contains an absolute delay)
138
138
# NB: we also need the remote signature, which prevents us from unilaterally changing the HTLC-timeout transaction
139
- <remote_htlcpubkey > OP_CHECKSIGVERIFY <local_htlcpubkey > OP_CHECKSIGVERIFY
139
+ <local_htlcpubkey > OP_CHECKSIGVERIFY <remote_htlcpubkey > OP_CHECKSIGVERIFY
140
140
1 OP_CHECKSEQUENCEVERIFY
141
141
",
142
142
"tapleaf_2": "
143
143
# funds go to the remote node if it has the payment preimage.
144
- OP_HASH160 <RIPEMD160(payment_hash)> OP_EQUALVERIFY
144
+ OP_SIZE 32 OP_EQUALVERIFY OP_HASH160 <RIPEMD160(payment_hash)> OP_EQUALVERIFY
145
145
<remote_htlcpubkey>
146
146
OP_CHECKSIGVERIFY
147
147
1 OP_CHECKSEQUENCEVERIFY
@@ -159,8 +159,8 @@ The commitment transaction will then become:
159
159
"tapleaf_1": "
160
160
# funds go to us via a second-stage HTLC-success transaction once we have the payment preimage
161
161
# NB: we also need the remote signature, which prevents us from unilaterally changing the HTLC-success transaction
162
- OP_HASH160 <RIPEMD160(payment_hash)> OP_EQUALVERIFY
163
- <remote_htlcpubkey > OP_CHECKSIGVERIFY <local_htlcpubkey > OP_CHECKSIGVERIFY
162
+ OP_SIZE 32 OP_EQUALVERIFY OP_HASH160 <RIPEMD160(payment_hash)> OP_EQUALVERIFY
163
+ <local_htlcpubkey > OP_CHECKSIGVERIFY <remote_htlcpubkey > OP_CHECKSIGVERIFY
164
164
1 OP_CHECKSEQUENCEVERIFY
165
165
",
166
166
"tapleaf_2": "
@@ -195,7 +195,7 @@ A taproot HTLC-success transaction looks like:
195
195
{
196
196
"txid": "...",
197
197
"vout": 42,
198
- "scriptSig": "<payment_preimage > <remotehtlcsig > <localhtlcsig >",
198
+ "scriptSig": "<remotehtlcsig > <localhtlcsig > <payment_preimage >",
199
199
"sequence": 1
200
200
}
201
201
],
@@ -318,7 +318,7 @@ We can see a few problems emerge from that two steps process:
318
318
transactions that let the remote peer claim PTLCs from the local commitment
319
319
* claiming successful PTLCs from the remote peer's commitment now requires using RBF and sighash
320
320
flags similar to anchor outputs HTLC transactions (` sighash_single | sighash_anyonecanpay ` trick)
321
- * before signing a commitment update, peers must obtain from their counterpary adaptor signatures
321
+ * before signing a commitment update, peers must obtain from their counterparty adaptor signatures
322
322
for their pending received PTLCs in the future remote commitment
323
323
324
324
Let's now detail a strawman, high-level proposal that enables PTLCs.
0 commit comments