BIP 341: Fix taproot_tweak_pubkey #1386

pull jonasnick wants to merge 1 commits into bitcoin:master from jonasnick:fix-taproot-tweak-pubkey changing 1 files +4 −1
  1. jonasnick commented at 8:44 PM on October 24, 2022: contributor

    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.

    A test vector is being added here: https://github.com/bitcoin-core/qa-assets/pull/98

    CC @sipa @ajtowns

  2. 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`.
    be340277fc
  3. sipa commented at 6:12 PM on November 10, 2022: member

    ACK be340277fcaa57a813a898700c1aef9637cfa90e

  4. kallewoof merged this on Jan 4, 2023
  5. kallewoof closed this on Jan 4, 2023

Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-19 11:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me