Browse Source

Ensure `Engine`'s are always Clone.

master
Sean Bowe 7 years ago
parent
commit
4b366a143d
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
  1. 2
      src/lib.rs

2
src/lib.rs

@ -34,7 +34,7 @@ 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 + 'static pub trait Engine: Sized + 'static + Clone
{ {
/// 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…
Cancel
Save