Skip to content

Commit

Permalink
Serialize and Deserialize in MontgomeryBackendPrimeField
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodeymo committed Jul 18, 2023
1 parent 38f935b commit 66dfbd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions math/src/field/fields/montgomery_backed_prime_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ pub trait IsModulus<U>: Debug {
const MODULUS: U;
}

#[cfg_attr(
feature = "lambdaworks-serde",
derive(serde::Serialize, serde::Deserialize)
)]
#[derive(Clone, Debug, Hash, Copy)]
pub struct MontgomeryBackendPrimeField<M, const NUM_LIMBS: usize> {
phantom: PhantomData<M>,
Expand Down

0 comments on commit 66dfbd4

Please sign in to comment.