Skip to content

Commit 1625074

Browse files
authored
Merge pull request bitcoin#1231 from GambolingPangolin/bip341-link-fix
Fixes a link in BIP 341
2 parents f0cb046 + da78942 commit 1625074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0341.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Alice will not be able to notice the script path, but Mallory can unilaterally s
167167
</ref>
168168
* The remaining scripts should be organized into the leaves of a binary tree. This can be a balanced tree if each of the conditions these scripts correspond to are equally likely. If probabilities for each condition are known, consider constructing the tree as a Huffman tree.
169169
170-
'''Computing the output script''' Once the spending conditions are split into an internal key <code>internal_pubkey</code> and a binary tree whose leaves are (leaf_version, script) tuples, the output script can be computed using the Python3 algorithms below. These algorithms take advantage of helper functions from the [bip-0340/referency.py BIP340 reference code] for integer conversion, point multiplication, and tagged hashes.
170+
'''Computing the output script''' Once the spending conditions are split into an internal key <code>internal_pubkey</code> and a binary tree whose leaves are (leaf_version, script) tuples, the output script can be computed using the Python3 algorithms below. These algorithms take advantage of helper functions from the [[bip-0340/reference.py|BIP340 reference code]] for integer conversion, point multiplication, and tagged hashes.
171171

172172
First, we define <code>taproot_tweak_pubkey</code> for 32-byte [[bip-0340.mediawiki|BIP340]] public key arrays.
173173
The function returns a bit indicating the tweaked public key's Y coordinate as well as the public key byte array.

0 commit comments

Comments
 (0)