def mneg
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/field.bend as Fieldimport Base
53def mneg(+m: Nat, a: Nat) -> Nat:
54 msub(m, 0n, a)
Uses (2)
Used by (12)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/scalarops:neg_v
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/curve:pick_if
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/ecdsa:low
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/ecdsa:recover_r
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/schnorr:even_b
- …