halo2_ecc::fields

Trait FieldExtConstructor

Source
pub trait FieldExtConstructor<Fp: PrimeField, const DEGREE: usize> {
    // Required methods
    fn new(c: [Fp; DEGREE]) -> Self;
    fn coeffs(&self) -> Vec<Fp>;
}

Required Methods§

Source

fn new(c: [Fp; DEGREE]) -> Self

Source

fn coeffs(&self) -> Vec<Fp>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FieldExtConstructor<Fq, 2> for Fq2

Source§

fn new(c: [Fq; 2]) -> Self

Source§

fn coeffs(&self) -> Vec<Fq>

Source§

impl FieldExtConstructor<Fq, 12> for Fq12

Source§

fn new(c: [Fq; 12]) -> Self

Source§

fn coeffs(&self) -> Vec<Fq>

Implementors§