Skip to content

Commit b2e6ea4

Browse files
committed
Add more bounds for Monty::Params
1 parent 90432fc commit b2e6ea4

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
@@ -561,7 +561,7 @@ pub trait Monty:
561561
type Integer: Integer<Monty = Self>;
562562

563563
/// The precomputed data needed for this representation.
564-
type Params: Clone;
564+
type Params: 'static + Clone + Debug + Eq + Sized + Send + Sync;
565565

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

0 commit comments

Comments
 (0)