summaryrefslogtreecommitdiff
path: root/bip-0345.mediawiki
diff options
context:
space:
mode:
authorGreg Sanders <gsanders87@gmail.com>2023-03-28 12:42:48 -0400
committerGreg Sanders <gsanders87@gmail.com>2023-03-28 12:42:48 -0400
commit29345a10f0e991e8f223beb9a92984e767911ac2 (patch)
treea17ca89090501c8b594bb31d0f86b87a55d895c4 /bip-0345.mediawiki
parent8bf5b869e5840fc5564e01f62bdbabc8b8ffcab2 (diff)
downloadbips-29345a10f0e991e8f223beb9a92984e767911ac2.tar.xz
Be explicit about tapleaf version forwarding
Diffstat (limited to 'bip-0345.mediawiki')
-rw-r--r--bip-0345.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0345.mediawiki b/bip-0345.mediawiki
index d23571d..c0baeb2 100644
--- a/bip-0345.mediawiki
+++ b/bip-0345.mediawiki
@@ -261,7 +261,7 @@ where
After the stack is parsed, the following validation checks are performed:
* Let the output designated by <code><trigger-vout-idx></code> be called ''triggerOut''.
-* If the scriptPubKey of ''triggerOut'' is not a witness program of the same version as the currently executing script, script execution MUST fail and terminate immediately.
+* If the scriptPubKey of ''triggerOut'' is not a witness program of the same version and same tapleaf version as the currently executing script, script execution MUST fail and terminate immediately.
* Let the script constructed by taking the <code><leaf-update-script-body></code> and prefixing it with minimally-encoded data pushes of the <code><n-pushes></code> leaf-update script data items be called the ''leaf-update-script''.
** The leaf-update data items will be in the same order in the ''leaf-update-script'' as they appeared on the stack.
* If the scriptPubKey of ''triggerOut'' does not match that of a taptree that is identical to that of the currently evaluated input, but with the leaf script substituted for ''leaf-update-script'', script execution when spending this output MUST fail and terminate immediately.