-
Notifications
You must be signed in to change notification settings - Fork 90
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
Implement KeyIdStorage
in Rust
#1134
Conversation
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 is good!
Wrote a few comments and suggestions:
With regards to the name of the trait I think we can decide on that later. |
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.
Looks good, thank you!
- As for the name, I think I agree that we can change it later if necessary.
- Another thing I remembered was that I believe we wanted to originally expose the storage error to the Wasm bindings, so we could convert the enum variants properly between Wasm and Rust. Doesn't have to be done in this PR and not sure if it's worthwhile and viable in the first place, just wanted to raise it.
# Conflicts: # identity_storage/Cargo.toml
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 is great!
Thanks for the added pack
and unpack
methods on MethodDigest
.
KeyIdStorage
in RustKeyIdStorage
in Rust
Description of change
Add the
KeyIdStorage
trait as a way for savingKeyId
s of verification method materials by introducingMethodDigest
that takes aVerificationMethod
. This is an implementation of the issue #1126 with the difference thatIdentityStorage
is named here asKeyIdStorage
(to be discussed).KeyStorageError
is now refactored as genericStorageError
for bothKeyStorage
andKeyIdStorage
.Links to any relevant issues
fixes issue #1126
.Type of change
Add an
x
to the boxes that are relevant to your changes.