Skip to content

Commit

Permalink
zerorize zk proof secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsemakula committed Oct 16, 2023
1 parent b74b9ec commit 9ada5d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion multi-party-ecdsa/src/utilities/zk_composite_dlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use merlin::Transcript;
use serde::{Deserialize, Serialize};
use serde_repr::{Deserialize_repr, Serialize_repr};
use serde_with::serde_as;
use zeroize::ZeroizeOnDrop;

/// Statistical security parameter (i.e. m=80 in CGGMP20).
const STAT_SECURITY: usize = 80;
Expand All @@ -32,7 +33,7 @@ pub struct CompositeDLogStatement {
pub value: BigInt,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, ZeroizeOnDrop)]
pub struct CompositeDLogWitness {
pub exponent: BigInt,
pub totient: BigInt,
Expand Down

0 comments on commit 9ada5d3

Please sign in to comment.