def pick_parity

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/secp256k1/curve.bend:263

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/curve.bend as Curve
import Base

263def pick_parity(+p: Nat, +y: Nat, +par: Nat) -> Nat:
264  pick_if(p, y, Nat.is_eq(Nat.mod(y, 2n), par))

Uses (4)

Used by (4)