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
The tapscript opcode <code>OP_SUCCESS187</code> (<code>0xbb</code>) is constrained with new rules to implement
@@ -176,7 +188,7 @@ would always be hard-coded via a push in the script, the risk of mistakes seems
176
188
177
189
The following values of the other parameters have special meanings:
178
190
* 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.
191
+
* 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
192
* If the <code><index></code> is -1, it is replaced with the index of the current input.
181
193
* If the <code><data></code> is the empty buffer, then there is no data tweak for the input/output being checked.
182
194
@@ -190,13 +202,17 @@ The specification is divided into three parts:
190
202
* the input initialization;
191
203
* the opcode evaluation.
192
204
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.
205
+
The following helper function is a variant of <code>taproot_tweak_pubkey</code> from [[bip-0341.mediawiki|BIP341]],
206
+
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