def lift_x

bend-collections-laws-crypto@1.0.0.0 · src/crypto/secp256k1/schnorr.bend:76

import bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/schnorr.bend as Schnorr
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/field.bend as F
import bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/point.bend as P

76# lift_x: the point with x-coordinate x and even y, if any
77def lift_x(+x: List<&2, Nat>) -> Maybe<&2, P.Point>:
78  lift_if(x, F.lt_p(x))

Uses (6)

Used by (4)