You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bip-0442.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Stack operation:
33
33
- Pop `x2` and `x1` from the stack.
34
34
- Push `pc` onto the stack.
35
35
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.
*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).*
90
90
91
91
#### Channel update script (pseudo-code):
92
92
@@ -107,6 +107,8 @@ OP_ELSE
107
107
OP_ENDIF
108
108
```
109
109
110
+
*Note: `OP_0NOTEQUAL` can be omitted (any non-zero value left on the stack would be accepted by the script interpreter).*
111
+
110
112
These constructions ensure both parties sign the same pair hash, requiring inclusion of both update and settlement hashes in the witness.
111
113
112
114
### In MATT
@@ -213,6 +215,7 @@ This document is licensed under the 3-clause BSD license.
0 commit comments