Skip to content

Commit 1feffb9

Browse files
committed
Finshing touches
1 parent 3dbae36 commit 1feffb9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bip-0442.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Stack operation:
3333
- Pop `x2` and `x1` from the stack.
3434
- Push `pc` onto the stack.
3535

36-
[^1]: The number of SHA256 blocks is minimized in typical use cases. The tag can be pre-computed as a SHA256 mid-state, requiring only 2 hash cycles for two 32-byte items, or 1 for two smaller items.
36+
[^1]: The number of SHA256 blocks is minimized in typical use cases. The tag can be precomputed as a SHA256 mid-state, requiring only two hash cycles for two 32-byte items, or one for two smaller items.
3737

3838
## Motivation
3939

@@ -86,7 +86,7 @@ OP_CHECKLOCKTIMEVERIFY # <1>, <S+1>
8686
OP_DROP # <1>
8787
```
8888

89-
*Note: `state-n-hash` commits to a specific `nLockTime` value for the transaction through `OP_CHECKTEMPLATEVERIFY`; `OP_CHECKLOCKTIMEVERIFY` ensures that the state progression can only go forward (transaction needs to have greater `nLockTime` value than the intermediate state being spent).*
89+
*Note: `state-n-hash` commits to a specific `nLockTime` value for the transaction through `OP_CHECKTEMPLATEVERIFY`; `OP_CHECKLOCKTIMEVERIFY` ensures that the state progression can only go forward (the transaction needs to have greater `nLockTime` value than the intermediate state being spent).*
9090

9191
#### Channel update script (pseudo-code):
9292

@@ -107,6 +107,8 @@ OP_ELSE
107107
OP_ENDIF
108108
```
109109

110+
*Note: `OP_0NOTEQUAL` can be omitted (any non-zero value left on the stack would be accepted by the script interpreter).*
111+
110112
These constructions ensure both parties sign the same pair hash, requiring inclusion of both update and settlement hashes in the witness.
111113

112114
### In MATT
@@ -213,6 +215,7 @@ This document is licensed under the 3-clause BSD license.
213215
6. OP_CHECKCONTRACTVERIFY: [BIP-443]
214216
7. OP_INTERNALKEY: [BIP-349], [BIN-2024-0004]
215217
8. Tagged hash: [BIP-340]
218+
9. MuSig2: [BIP-327]
216219
217220
[lnhance]: https://github.com/lnhance/bitcoin
218221
[eltoo]: https://github.com/instagibbs/bolts/blob/eltoo_draft/XX-eltoo-transactions.md

0 commit comments

Comments
 (0)