zksync_pairing

Trait ScalarEngine

Source
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§

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", so this trait is not object safe.

Implementors§

Source§

impl ScalarEngine for Bls12

Source§

type Fr = Fr

Source§

impl ScalarEngine for zksync_pairing::bn256::Bn256

Source§

type Fr = Fr

Source§

impl ScalarEngine for zksync_pairing::compact_bn256::Bn256

Source§

type Fr = Fr