pub trait ScalarEngine:
Sized
+ 'static
+ Clone
+ Copy
+ Send
+ Sync
+ Debug {
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§
Sourcetype Fr: PrimeField + SqrtField
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", so this trait is not object safe.