diff options
author | codeShark149 <rajarshi149@gmail.com> | 2019-11-06 23:48:29 +0530 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-19 14:47:33 -0800 |
commit | e9e23e474f758e9e38e30a71773e15e6bdd3e775 (patch) | |
tree | 65e77218e6f259a35d00e525414dff6ad20890e9 /bip-taproot.mediawiki | |
parent | 4774e4d1e8d856567ad2de9a39b2b3a29f35422a (diff) |
Internal pubkey calculation fixed in taproot_tweak_pubkey()
Diffstat (limited to 'bip-taproot.mediawiki')
-rw-r--r-- | bip-taproot.mediawiki | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-taproot.mediawiki b/bip-taproot.mediawiki index d8f51ca..298df18 100644 --- a/bip-taproot.mediawiki +++ b/bip-taproot.mediawiki @@ -189,7 +189,7 @@ def taproot_tweak_pubkey(pubkey, h): t = int_from_bytes(tagged_hash("TapTweak", pubkey + h)) if t >= SECP256K1_ORDER: raise ValueError - Q = point_mul(point(pubkey), t) + Q = point_add(point(pubkey), point_mul(G, t)) return bytes_from_int(x(Q)), has_square_y(Q) def taproot_tweak_seckey(seckey0, h): |