Skip to content

Commit 1e27c4e

Browse files
authored
Merge pull request bitcoin#142 from OrfeasLitos/python-typo
Replace R with P in taproot_tweak_seckey
2 parents b79935a + 7bce5a0 commit 1e27c4e

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
@@ -194,7 +194,7 @@ def taproot_tweak_pubkey(pubkey, h):
194194
195195
def taproot_tweak_seckey(seckey0, h):
196196
P = point_mul(G, int_from_bytes(seckey0))
197-
seckey = SECP256K1_ORDER - seckey0 if not has_square_y(R) else seckey
197+
seckey = SECP256K1_ORDER - seckey0 if not has_square_y(P) else seckey
198198
t = int_from_bytes(tagged_hash("TapTweak", bytes_from_int(x(P)) + h))
199199
if t >= SECP256K1_ORDER:
200200
raise ValueError

0 commit comments

Comments
 (0)