diff options
author | Orfeas Stefanos Thyfronitis Litos <o.thyfronitis@ed.ac.uk> | 2019-11-13 14:00:03 +0000 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-19 14:47:33 -0800 |
commit | 4e88d4fae7c79abc2acd35f036daceacd8122da8 (patch) | |
tree | 6a62da57d1c19bc9244dab2efc348b7651b830ad /bip-taproot.mediawiki | |
parent | 43fbb032352b1836ea2d5f11a4d8221da35e1029 (diff) |
Replace R with P in taproot_tweak_seckey
Diffstat (limited to 'bip-taproot.mediawiki')
-rw-r--r-- | bip-taproot.mediawiki | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-taproot.mediawiki b/bip-taproot.mediawiki index 7d646ea..de266b9 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 |