def prime
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/field.bend as Fieldimport Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
79# p = 2^255 - 19
80def prime(+one: Nat) -> Nat:
81 Nat.sub(C.shift(255n, one), 19n)
Uses (3)
Used by (22)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/proof:at_p
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/x25519:x25519
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/prime:prime_eq
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519:public_key
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519:sign
- …