From ad4156a39419883a485526908dc8f76965602a3d Mon Sep 17 00:00:00 2001 From: LaurentMT Date: Mon, 11 Nov 2019 01:20:28 +0100 Subject: [PATCH] Fxied typo in taproot_sign_script() --- bip-taproot.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-taproot.mediawiki b/bip-taproot.mediawiki index 298df189..b20dd093 100644 --- a/bip-taproot.mediawiki +++ b/bip-taproot.mediawiki @@ -254,7 +254,7 @@ This function returns the witness stack necessary and a sighash 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]