-
Notifications
You must be signed in to change notification settings - Fork 44
Mithril Client verify multi signature #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
05a151b
to
2e5bd62
Compare
2e5fe8d
to
2f3f1fc
Compare
AggregatorHandler needs to be able to get certificate details from the Aggregator
* First version of the multi signature Verifier * Update Cargo.toml dependencies * Update entities with new type aliases
* Prefer trait object implementation vs generic * Add new Verifier dependency * Add missing tests for restore snapshot * Cleaned client code for more readability * Remove errors module
2f3f1fc
to
338b079
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's great to see this taking shape, TBH I did not review it in full details as this is a lot of code :(
|
||
#[dev-dependencies] | ||
rand_core = "0.6.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need the client to be aware of these? Couldn't we reexport types from the mithril-core library?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, reexport sounds like a very good option 🤔
|
||
use crate::entities::*; | ||
|
||
#[cfg(test)] | ||
use mockall::automock; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum AggregatorHandlerError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
} | ||
} | ||
|
||
/// Unpack snapshot | ||
async fn unpack_snapshot(&self, digest: &str) -> Result<String, String> { | ||
async fn unpack_snapshot(&self, digest: &str) -> Result<String, AggregatorHandlerError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to beg for a general utility to handle snapshot
files for both packing and unpacking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely, we definitely need to work shortly on a mithril-common
library for all the general utilities such as the snapshotter
👍
338b079
to
971e4b5
Compare
This PR provides a multi signature verifier for the Mithril Client
Closes #147