Skip to content

Commit

Permalink
Add From<bool> traitbound to FieldExt. Should close axiom-crypto#3
Browse files Browse the repository at this point in the history
  • Loading branch information
kilic committed Mar 14, 2022
1 parent 530f4c0 commit af85374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arithmetic/fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub trait BaseExt: ff::Field + Ord + ConstantTimeEq {
}
}

pub trait FieldExt: ff::PrimeField + BaseExt + Group<Scalar = Self> {
pub trait FieldExt: ff::PrimeField + BaseExt + Group<Scalar = Self> + From<bool> {
/// Inverse of $2$ in the field.
const TWO_INV: Self;

Expand Down

0 comments on commit af85374

Please sign in to comment.