Skip to content

Commit

Permalink
chore: more bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
palozano committed Dec 13, 2023
1 parent 2928ca4 commit c0e91d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct PublicKey(pub(crate) G1Projective);
#[derive(Debug, Copy, Clone, Eq, PartialEq, Zeroize)]
pub struct PrivateKey(pub(crate) Scalar)
where
Scalar: DefaultIsZeroes;
Scalar: Zeroize + DefaultIsZeroes;

impl From<G1Projective> for PublicKey {
fn from(val: G1Projective) -> Self {
Expand Down

0 comments on commit c0e91d9

Please sign in to comment.