Skip to content

Commit

Permalink
Add core::fmt::Debug constraint to PrimeCurveParams::FieldElement
Browse files Browse the repository at this point in the history
  • Loading branch information
coder0xff authored Mar 12, 2024
1 parent 3edabec commit fdf7d3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion primeorder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ pub trait PrimeCurveParams:
{
/// Base field element type.
type FieldElement: PrimeField<Repr = FieldBytes<Self>>
+ Invert<Output = CtOption<Self::FieldElement>>;
+ Invert<Output = CtOption<Self::FieldElement>>
+ core::fmt::Debug;

/// [Point arithmetic](point_arithmetic) implementation, might be optimized for this specific curve
type PointArithmetic: point_arithmetic::PointArithmetic<Self>;
Expand Down

0 comments on commit fdf7d3a

Please sign in to comment.