def pp
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/consts.bend as Constsimport 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/spec/crypto/secp256k1/field.bend as FS
100# p = 1 + pp, m + c = 2^256
101def pp(+one: Nat) -> Nat:
102 Nat.sub(C.shift(256n, one), Nat.add(FS.cp(one), 1n))
Uses (5)
Used by (42)
- 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/consts:hm_p
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fieldops:small_r
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fwrap:lt_p_f
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fieldops:small_lt_p
- …