Skip to content

Commit 2119931

Browse files
committed
BIP 341: add missing conversion from bytes to int
1 parent 64aba76 commit 2119931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0341.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def taproot_tweak_pubkey(pubkey, h):
182182
t = int_from_bytes(tagged_hash("TapTweak", pubkey + h))
183183
if t >= SECP256K1_ORDER:
184184
raise ValueError
185-
Q = point_add(lift_x(pubkey), point_mul(G, t))
185+
Q = point_add(lift_x(int(pubkey)), point_mul(G, t))
186186
return 0 if has_even_y(Q) else 1, bytes_from_int(x(Q))
187187

188188
def taproot_tweak_seckey(seckey0, h):

0 commit comments

Comments
 (0)