Skip to content

Commit 453a87f

Browse files
committed
Add more bounds for Monty::Params
1 parent e13b060 commit 453a87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ pub trait Monty:
550550
type Integer: Integer<Monty = Self>;
551551

552552
/// The precomputed data needed for this representation.
553-
type Params: Clone;
553+
type Params: 'static + Clone + Debug + Eq + Sized + Send + Sync;
554554

555555
/// Create the precomputed data for Montgomery representation of integers modulo `modulus`.
556556
fn new_params(modulus: Odd<Self::Integer>) -> Self::Params;

0 commit comments

Comments
 (0)