← Back to Bitcoin Improvement Proposals
BIPinformational

bip-0340: clarify that lift_x fails with out-of-range inputs

Without this commit, it's not defined what happens if x is not in range 0..p-1. However, lift_x may easily be called with out of range values. The reference implementation of lift_x correctly returns failure in such cases. CC: @real-or-random @sipa

No reviews
jonasnick·Updated Jul 25, 2022·0 reviews·0 attestations·View source
Collections:BIPs — Merged

Specification

Without this commit, it's not defined what happens if x is not in range 0..p-1. However, lift_x may easily be called with out of range values. The reference implementation of lift_x correctly returns failure in such cases.

CC: @real-or-random @sipa

Discussion (0 threads)

Loading discussions...