def prime
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/field.bend as Fieldimport Base
34def prime(+one: Nat) -> Nat:
35 Nat.sub(w256(one), cp(one))
Uses (4)
Used by (106)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/point:red
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/consts:prime_eq
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/sel:l16
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/ecdsa:p
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fieldops:mul_r
- …