summaryrefslogtreecommitdiff
path: root/bip-0341.mediawiki
diff options
context:
space:
mode:
authorJonas Nick <jonasd.nick@gmail.com>2022-08-16 15:09:14 +0000
committerJonas Nick <jonasd.nick@gmail.com>2022-08-16 15:09:14 +0000
commit2119931f0169643cb6cd303279749fb2fd1676af (patch)
treefbcc12a368b1f9add994598f05e03ae414138241 /bip-0341.mediawiki
parent64aba767e2d422b5d471509acc340750432613ae (diff)
BIP 341: add missing conversion from bytes to int
Diffstat (limited to 'bip-0341.mediawiki')
-rw-r--r--bip-0341.mediawiki2
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):