Skip to content

Commit

Permalink
Merge pull request axiom-crypto#8 from appliedzkp/from_bool
Browse files Browse the repository at this point in the history
Add From<bool> traitbound to FieldExt. Should clone axiom-crypto#3
  • Loading branch information
kilic authored Apr 9, 2022
2 parents 5898601 + af85374 commit 3721879
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 3721879

Please sign in to comment.