Expand description
Field arithmetic underpinning Lighter’s L2 signing scheme.
Fpis the Goldilocks prime fieldGF(p)withp = 2^64 - 2^32 + 1.Fp5is the quintic extensionGF(p^5), defined overFpwith the irreducible polynomialz^5 - 3.
Both types expose constant-time arithmetic and canonical little-endian byte encodings, suitable for direct reuse from the Poseidon2 hash and the ecgfp5 curve layers built on top.
Structs§
Constants§
- MODULUS
- Goldilocks prime modulus:
p = 2^64 - 2^32 + 1.