diff options
author | Luke Dashjr <luke_github1@dashjr.org> | 2021-07-20 18:40:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 18:40:26 +0000 |
commit | 9b861c2e0582a3f80dc0ed3c979e06baf487fbf5 (patch) | |
tree | a76081c42ada8a43ed8a417584c2f168d9955c09 /bip-0341.mediawiki | |
parent | 99701f68a88ce33b2d0838eb84e115cef505b4c2 (diff) | |
parent | 9cf5c72b569e321c0fc680b2a1ce0c3dd03c75af (diff) | |
download | bips-9b861c2e0582a3f80dc0ed3c979e06baf487fbf5.tar.xz |
Merge pull request #1142 from RCasatta/lift_x
remove int_from_bytes in lift_x call since it is done internally
Diffstat (limited to 'bip-0341.mediawiki')
-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 5e47bfc..ba3310f 100644 --- a/bip-0341.mediawiki +++ b/bip-0341.mediawiki @@ -180,7 +180,7 @@ def taproot_tweak_pubkey(pubkey, h): t = int_from_bytes(tagged_hash("TapTweak", pubkey + h)) if t >= SECP256K1_ORDER: raise ValueError - Q = point_add(lift_x(int_from_bytes(pubkey)), point_mul(G, t)) + Q = point_add(lift_x(pubkey), point_mul(G, t)) return 0 if has_even_y(Q) else 1, bytes_from_int(x(Q)) def taproot_tweak_seckey(seckey0, h): |