Engine should always be 'static, for flexibility in downstream code.
This commit is contained in:
parent
5d9f77f5bf
commit
f32cb40929
@ -34,7 +34,8 @@ use std::io::{self, Read, Write};
|
|||||||
/// An "engine" is a collection of types (fields, elliptic curve groups, etc.)
|
/// An "engine" is a collection of types (fields, elliptic curve groups, etc.)
|
||||||
/// with well-defined relationships. In particular, the G1/G2 curve groups are
|
/// with well-defined relationships. In particular, the G1/G2 curve groups are
|
||||||
/// of prime order `r`, and are equipped with a bilinear pairing function.
|
/// of prime order `r`, and are equipped with a bilinear pairing function.
|
||||||
pub trait Engine: Sized {
|
pub trait Engine: Sized + 'static
|
||||||
|
{
|
||||||
/// This is the scalar field of the G1/G2 groups.
|
/// This is the scalar field of the G1/G2 groups.
|
||||||
type Fr: PrimeField;
|
type Fr: PrimeField;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user