Skip to content

Commit 9b861c2

Browse files
authored
Merge pull request bitcoin#1142 from RCasatta/lift_x
remove int_from_bytes in lift_x call since it is done internally
2 parents 99701f6 + 9cf5c72 commit 9b861c2

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
@@ -180,7 +180,7 @@ def taproot_tweak_pubkey(pubkey, h):
180180
t = int_from_bytes(tagged_hash("TapTweak", pubkey + h))
181181
if t >= SECP256K1_ORDER:
182182
raise ValueError
183-
Q = point_add(lift_x(int_from_bytes(pubkey)), point_mul(G, t))
183+
Q = point_add(lift_x(pubkey), point_mul(G, t))
184184
return 0 if has_even_y(Q) else 1, bytes_from_int(x(Q))
185185

186186
def taproot_tweak_seckey(seckey0, h):

0 commit comments

Comments
 (0)