def bc_limbs

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/secp256k1/negate.bend:135

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/negate.bend as Negate
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/field.bend as FS
import bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/limbs.bend as L
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/bounds.bend as B

135# b + c as 16 limbs, when b + c < 2^256
136def bc_limbs(+one: Nat, +h1: {one == 1n : Nat}, +c: List<&2, Nat>, +b: List<&2, Nat>) -> {FS.limbs16(one, 16n, L.norm16(L.add(b, c))) == True{} : Bool}:
137  B.carry_limbs(one, h1, 32n, 16n, L.add(b, c), 0n, {==})

Uses (7)

Used by (1)