From 4e88d4fae7c79abc2acd35f036daceacd8122da8 Mon Sep 17 00:00:00 2001 From: Orfeas Stefanos Thyfronitis Litos Date: Wed, 13 Nov 2019 14:00:03 +0000 Subject: [PATCH] Replace R with P in taproot_tweak_seckey --- bip-taproot.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-taproot.mediawiki b/bip-taproot.mediawiki index 7d646ea1..de266b9c 100644 --- a/bip-taproot.mediawiki +++ b/bip-taproot.mediawiki @@ -194,7 +194,7 @@ def taproot_tweak_pubkey(pubkey, h): def taproot_tweak_seckey(seckey0, h): P = point_mul(G, int_from_bytes(seckey0)) - seckey = SECP256K1_ORDER - seckey0 if not has_square_y(R) else seckey + seckey = SECP256K1_ORDER - seckey0 if not has_square_y(P) else seckey t = int_from_bytes(tagged_hash("TapTweak", bytes_from_int(x(P)) + h)) if t >= SECP256K1_ORDER: raise ValueError