1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-04-13 16:18:40 +00:00
Files
bips/bip-0341.mediawiki
Jonas Nick be340277fc BIP 341: Fix taproot_tweak_pubkey
`lift_x` returns `None` if the input integer is not an X coordinate on the curve
to indicate failure. `point_add`, on the other hand, interprets `None` as the
point at infinity. Therefore, without this commit, if the internal `pubkey` is
not a valid X coordinate, the function will not fail, which contradicts the
specification in the "Script validation rules section". Instead, it sets `Q` to
`t*G`.
2022-10-24 20:33:05 +00:00

43 KiB