Skip to content

Commit d55d998

Browse files
Apply suggestions from code review
Co-authored-by: Jean-Philippe Raynaud <jp.raynaud@gmail.com>
1 parent 8fc91b8 commit d55d998

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mithril-stm/src/aggregate_signature/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ mod tests {
268268
assert!(n < &params.k && k == &params.k)
269269
},
270270
Some(AggregationError::UnsupportedProofSystem(aggregate_signature_type)) => {
271-
println!("Unsupported proof system: {:?}", aggregate_signature_type);
271+
panic!("Unsupported proof system: {:?}", aggregate_signature_type);
272272
},
273273
_ => {
274-
println!("Unexpected error during aggregation: {:?}", error);
274+
panic!("Unexpected error during aggregation: {:?}", error);
275275
}
276276
},
277277
}

mithril-stm/src/aggregate_signature/signature.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use anyhow::anyhow;
21
use std::collections::HashMap;
32
use std::fmt::Display;
43
use std::hash::Hash;
54

5+
use anyhow::anyhow;
66
use blake2::digest::{Digest, FixedOutput};
77
use serde::{Deserialize, Serialize};
88

@@ -147,7 +147,7 @@ impl<D: Clone + Digest + FixedOutput + Send + Sync> AggregateSignature<D> {
147147
)),
148148
}
149149
})
150-
.map_err(|_| anyhow!(AggregateSignatureError::BatchInvalid))
150+
151151
}
152152

153153
/// Convert an aggregate signature to bytes

0 commit comments

Comments
 (0)