ring_math

Macro polynomial_ring

source
macro_rules! polynomial_ring {
    ( $name: ident, $field_element: ident, $modulus: expr, $name_str: expr ) => { ... };
}
Expand description

Use this to build a concrete instance of a polynomial ring.

e.g.

polynomial_ring!(
Poly64,
FoiFieldElement,
{
    let mut p = Polynomial::new(vec![FoiFieldElement::one()]);
    p.term(&FoiFieldElement::one(), 64);
    p
},
"Poly64"
);