Skip to content

Commit 3700e18

Browse files
authored
Merge pull request bitcoin#128 from codeShark149/tweak_pubkey_change
Internal pubkey calculation fixed in taproot_tweak_pubkey()
2 parents 230f6cb + de82b3a commit 3700e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-taproot.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def taproot_tweak_pubkey(pubkey, h):
189189
t = int_from_bytes(tagged_hash("TapTweak", pubkey + h))
190190
if t >= SECP256K1_ORDER:
191191
raise ValueError
192-
Q = point_mul(point(pubkey), t)
192+
Q = point_add(point(pubkey), point_mul(G, t))
193193
return bytes_from_int(x(Q)), has_square_y(Q)
194194
195195
def taproot_tweak_seckey(seckey0, h):

0 commit comments

Comments
 (0)