-
Notifications
You must be signed in to change notification settings - Fork 23
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
IdentityUpdate serialization #633
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
b09be7f
to
22dc869
Compare
c2b729b
to
a93bfe6
Compare
22dc869
to
da73388
Compare
a93bfe6
to
b4e75e4
Compare
da73388
to
4744e6f
Compare
23adb18
to
23db819
Compare
b4e75e4
to
9c2569e
Compare
This overall looks good to me, there's just some clippy lints to resolve and merging with |
c700fd0
to
4b2d5dc
Compare
6102158
to
574af6f
Compare
// TODO: Two steps needed here: | ||
// 1. Verify the RecoverableEcdsaSignature and make sure it recovers to the public key specified in the `signed_public_key` | ||
// 2. Verify the wallet signature on the `signed_public_key` | ||
// Return the wallet address |
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.
In case it's helpful, for your next PR - there should be an implementation of this already that you can copy/paste/refactor, same with the todo's above
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.
ethers crate supports this and I'm working on this issue.
btw, if anyone knows how to convert bytes(Vec, [u8] etc.) to/from different signature types(ethers, k256 etc.), that would be so helpful!
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.
I'd suggest writing a TryFrom<...>
implementation for our types, and if their libraries already have TryFrom
implemented you can use that internally. That way you don't have to worry about constraints around implementing traits for foreign types.
574af6f
to
3576910
Compare
…libxmtp into 04-07-identityupdate_serialization
3576910
to
b6bfc4d
Compare
…libxmtp into 04-07-identityupdate_serialization
421bf0c
to
dc8215a
Compare
…libxmtp into 04-07-identityupdate_serialization
dc8215a
to
3678ad4
Compare
@richardhuaaa I've updated to match the spacing in your comments and added hardcoded text in the tests |
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.
Thanks for handling my nits! I preferred the original time format you had to ISO8601, but that's fine
tl;dr
inbox_id
field to a few of the action typesSignature
types. Still need real verification of signatures and recovery addresses.IdentityUpdateBuilder
toSignatureRequestBuilder
inbox_id
to theIdentityUpdate
instead of being on each action)