mirror of
https://github.com/bitcoin/bips.git
synced 2024-11-19 01:40:05 +01:00
Internal pubkey calculation fixed in taproot_tweak_pubkey()
This commit is contained in:
parent
4774e4d1e8
commit
e9e23e474f
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user