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-0443.mediawiki
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ exhaustive, as there are many more possible combinations.
100
100
in the same transaction, or multiple times with the ''deduct'' logic. This prevents duplicate or inconsistent counting
101
101
of the same amounts.
102
102
103
-
'''Remark:''' it is allowed to check for multiple inputs to check the same output with the ''default'' logic. This
103
+
'''Remark:''' it is allowed for multiple inputs to check the same output with the ''default'' logic. This
104
104
allows multiple inputs to aggregate (in full or in part) their amounts to the same output.
105
105
106
106
-----
@@ -176,7 +176,7 @@ would always be hard-coded via a push in the script, the risk of mistakes seems
176
176
177
177
The following values of the other parameters have special meanings:
178
178
* If the <code><taptree></code> is -1, it is replaced with the Merkle root of the current input's tapscript tree. If the taptree is the empty buffer, then the taptweak is skipped.
179
-
* If the <code><pk></code> is 0, it is replaced with the NUMS x-only pubkey <code>0x50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0</code> defined in [[bip-0340.mediawiki|BIP-340]]. If the <code><pk></code> is -1, it is replaced with the taproot internal key of the current input.
179
+
* If the <code><pk></code> is 0, it is replaced with the NUMS x-only pubkey <code>0x50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0</code> defined in [[bip-0341.mediawiki|BIP-341]]. If the <code><pk></code> is -1, it is replaced with the taproot internal key of the current input.
180
180
* If the <code><index></code> is -1, it is replaced with the index of the current input.
181
181
* If the <code><data></code> is the empty buffer, then there is no data tweak for the input/output being checked.
182
182
@@ -190,13 +190,17 @@ The specification is divided into three parts:
190
190
* the input initialization;
191
191
* the opcode evaluation.
192
192
193
-
The following helper function is a version of <code>taproot_tweak_pubkey</code>, except that a raw 32-byte data is used
194
-
as the tweak.
193
+
The following helper function is a variant of <code>taproot_tweak_pubkey</code> from [[bip-0341.mediawiki|BIP341]],
194
+
except that a regular SHA256-hash is used instead of a tagged hash, and the pubkey is returned unchanged if the length
0 commit comments