summaryrefslogtreecommitdiff
path: root/bip-taproot.mediawiki
diff options
context:
space:
mode:
authorLaurentMT <LaurentMT@users.noreply.github.com>2019-11-11 01:20:28 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2020-01-19 14:47:33 -0800
commit32f364c85c347783d435817142acf35b4ae7db44 (patch)
tree3f62ad00960a54a7a859c21e8ba7a62b754566b0 /bip-taproot.mediawiki
parente9e23e474f758e9e38e30a71773e15e6bdd3e775 (diff)
downloadbips-32f364c85c347783d435817142acf35b4ae7db44.tar.xz
Fxied typo in taproot_sign_script()
Diffstat (limited to 'bip-taproot.mediawiki')
-rw-r--r--bip-taproot.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-taproot.mediawiki b/bip-taproot.mediawiki
index 298df18..b20dd09 100644
--- a/bip-taproot.mediawiki
+++ b/bip-taproot.mediawiki
@@ -254,7 +254,7 @@ This function returns the witness stack necessary and a <code>sighash</code> fun
def taproot_sign_script(internal_pubkey, script_tree, script_num, inputs):
info, h = taproot_tree_helper(script_tree)
(leaf_version, script), path = info[script_num]
- _, is_y_square = taproot_tweak_pubkey(internal_pubkey, t)
+ _, is_y_square = taproot_tweak_pubkey(internal_pubkey, h)
output_pubkey_tag = 0 if is_y_square else 1
pubkey_data = bytes([output_pubkey_tag + leaf_version]) + internal_pubkey
return inputs + [script, pubkey_data + path]