def red_e
bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/secp256k1/fieldops.bend:55
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fieldops.bend as Fieldops
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
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/proofs/crypto/secp256k1/limbs.bend as LV
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/reducek.bend as RK
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/consts.bend as K
55def red_e(+one: Nat, +h1: {one == 1n : Nat}, +xs: List<&2, Nat>, +hx: {Nat.is_lt(LV.ev(xs), Nat.mul(C.shift(256n, one), C.shift(256n, one))) == True{} : Bool}) -> {LV.ev(F.reduce(xs)) == Nat.mod(LV.ev(xs), 1n+K.pp(one)) : Nat}:
56 RK.reduce3_vv(one, h1, K.pp(one), F.c(), K.hm_p(one, h1), K.cp_cc(one, h1), K.cp_hb(one, h1), xs, hx)