Add PartialEq to structs

This commit is contained in:
Luke Parker
2022-05-25 00:21:01 -04:00
parent d10c6e16dc
commit d67d6f2f98
13 changed files with 28 additions and 25 deletions

View File

@@ -43,7 +43,7 @@ pub enum ClsagError {
InvalidC1
}
#[derive(Clone, Debug)]
#[derive(Clone, PartialEq, Debug)]
pub struct ClsagInput {
// The actual commitment for the true spend
pub commitment: Commitment,
@@ -182,7 +182,7 @@ fn core(
((D, c * mu_P, c * mu_C), c1.unwrap_or(c))
}
#[derive(Clone, Debug)]
#[derive(Clone, PartialEq, Debug)]
pub struct Clsag {
pub D: EdwardsPoint,
pub s: Vec<Scalar>,