diff options
author | kallewoof <karljohan-alm@garage.co.jp> | 2021-11-11 23:26:44 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 23:26:44 +0900 |
commit | 1625074e422ea913471727acc7d72842929a69aa (patch) | |
tree | 54bfb3a13d296a710d4e2c8f039179192ca348aa | |
parent | f0cb046b116e3c05814eeb6dc48180b96fa16613 (diff) | |
parent | da78942dddc66bafd3acd46fa3af83bd5725661d (diff) | |
download | bips-1625074e422ea913471727acc7d72842929a69aa.tar.xz |
Merge pull request #1231 from GambolingPangolin/bip341-link-fix
Fixes a link in BIP 341
-rw-r--r-- | bip-0341.mediawiki | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0341.mediawiki b/bip-0341.mediawiki index ba3310f..317e35a 100644 --- a/bip-0341.mediawiki +++ b/bip-0341.mediawiki @@ -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. |