From af853741f703803073e8c2482f02e949e1b2e1ce Mon Sep 17 00:00:00 2001 From: kilic Date: Mon, 14 Mar 2022 13:51:31 +0300 Subject: [PATCH] Add From traitbound to FieldExt. Should close #3 --- src/arithmetic/fields.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arithmetic/fields.rs b/src/arithmetic/fields.rs index 14adab0f95..87e3cbdb07 100644 --- a/src/arithmetic/fields.rs +++ b/src/arithmetic/fields.rs @@ -53,7 +53,7 @@ pub trait BaseExt: ff::Field + Ord + ConstantTimeEq { } } -pub trait FieldExt: ff::PrimeField + BaseExt + Group { +pub trait FieldExt: ff::PrimeField + BaseExt + Group + From { /// Inverse of $2$ in the field. const TWO_INV: Self;