Skip to content

Commit

Permalink
Merge pull request bitcoin#1142 from RCasatta/lift_x
Browse files Browse the repository at this point in the history
remove int_from_bytes in lift_x call since it is done internally
  • Loading branch information
luke-jr committed Jul 20, 2021
2 parents 99701f6 + 9cf5c72 commit 9b861c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bip-0341.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,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(int_from_bytes(pubkey)), point_mul(G, t))
Q = point_add(lift_x(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):
Expand Down

0 comments on commit 9b861c2

Please sign in to comment.