Skip to main content

ScalarEngine

Trait ScalarEngine 

Source
pub trait ScalarEngine:
    Sized
    + 'static
    + Clone {
    type Fr: PrimeField + SqrtField;
}
Expand description

An “engine” is a collection of types (fields, elliptic curve groups, etc.) with well-defined relationships. Specific relationships (for example, a pairing-friendly curve) can be defined in a subtrait.

Required Associated Types§

Source

type Fr: PrimeField + SqrtField

This is the scalar field of the engine’s groups.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§