From f32cb409292416e4b4f02363a63790541affea6c Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Mon, 20 Nov 2017 12:22:51 -0700 Subject: [PATCH] Engine should always be 'static, for flexibility in downstream code. --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c6d5536..f58df58 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,7 +34,8 @@ use std::io::{self, Read, Write}; /// An "engine" is a collection of types (fields, elliptic curve groups, etc.) /// with well-defined relationships. In particular, the G1/G2 curve groups are /// 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. type Fr: PrimeField;