Expand description
Polynomial ring math with variables in scalarff::FieldElement. Includes structures for vectors and matrices of variable dimension and overloads for mathematical operations.
Macros§
- The provided
modulusshould be a number< 2^64. This function creates a commutative ring with the provided modulus. This ring may be considered a field if the modulus is prime. ExpectsFieldElementto be in scope - Use this to build a concrete instance of a polynomial ring.
Structs§
- A two dimensional matrix implementation
- A univariate polynomial with coefficients in a field
Traits§
- A generic representation of a scalar finite field element. For use in internal module logic. Supports field operations using builtin operators (*-+/) and other convenience traits. Handles serialization and deserialization to a reasonable string representation.
- A trait representing a polynomial ring defined as
T[X]/<Self::modulus()>where T is a FieldElement trait and modulus is a function implemented by the struct implementing PolynomialRingElement