Conversation
src/common/errors.rs
Outdated
| }, | ||
| } | ||
|
|
||
| impl PartialEq for CreateKeypairError { |
There was a problem hiding this comment.
Since all these PartialEq only compare variants and not the underlying source fields, it feels like that should be documented for types, and perhaps Eq not be implemented.
|
|
||
| /// Serialization error | ||
| #[derive(Error, Debug)] | ||
| pub enum SerializationError { |
There was a problem hiding this comment.
did you want to impl PartialEq here for SerializationError?
|
@jcjones It turns out that the changes from #45 make #42 somewhat more complicated. Since we can now have several public keys for which we verify a signature, we expect signature verification to fail for all but one key. Therefore it's not entirely clear what we should return. Some options:
|
|
Thorny. I agree with not changing the Perhaps this is a thing for debug logging instead? Or expanding the doc comment on |
|
I think both options you propose are valid. In the case of debug logging, it would probably be good to have more logging than just for that case. Do you want to file a PR for the solution you prefer? |
|
I'll put together a PR. Thanks! |
|
I've opened #48 to replace this PR. |
No description provided.