franklin_crypto::jubjub

Trait JubjubEngine

Source
pub trait JubjubEngine: Engine {
    type Fs: PrimeField + SqrtField + ToUniform;
    type Params: JubjubParams<Self>;
}
Expand description

This is an extension to the pairing Engine trait which offers a scalar field for the embedded curve (Jubjub) and some pre-computed parameters.

Required Associated Types§

Source

type Fs: PrimeField + SqrtField + ToUniform

The scalar field of the Jubjub curve

Source

type Params: JubjubParams<Self>

The parameters of Jubjub and the Sapling protocol

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 JubjubEngine for Bls12

Source§

impl JubjubEngine for Bn256

Implementors§