diff options
author | Jonas Nick <jonasd.nick@gmail.com> | 2022-08-16 15:09:14 +0000 |
---|---|---|
committer | Jonas Nick <jonasd.nick@gmail.com> | 2022-08-16 15:09:14 +0000 |
commit | 2119931f0169643cb6cd303279749fb2fd1676af (patch) | |
tree | fbcc12a368b1f9add994598f05e03ae414138241 /bip-0341.mediawiki | |
parent | 64aba767e2d422b5d471509acc340750432613ae (diff) |
BIP 341: add missing conversion from bytes to int
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 fa9bb15..cc9a5e5 100644 --- a/bip-0341.mediawiki +++ b/bip-0341.mediawiki @@ -182,7 +182,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(pubkey), point_mul(G, t)) + Q = point_add(lift_x(int(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): |