mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-13 11:09:16 +01:00
Fixes a link in BIP 341
This commit is contained in:
parent
f0cb046b11
commit
da78942ddd
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ Alice will not be able to notice the script path, but Mallory can unilaterally s
|
|||
</ref>
|
||||
* 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.
|
||||
|
||||
'''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.
|
||||
'''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.
|
||||
|
||||
First, we define <code>taproot_tweak_pubkey</code> for 32-byte [[bip-0340.mediawiki|BIP340]] public key arrays.
|
||||
The function returns a bit indicating the tweaked public key's Y coordinate as well as the public key byte array.
|
||||
|
|
Loading…
Add table
Reference in a new issue