-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: allow multiple keys per wallet address #1122
Conversation
const publicKeyPEM = publicKey | ||
.export({ type: 'spki', format: 'pem' }) | ||
.toString() |
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.
Is there a specific reason for not storing the JWK directly?
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.
as this was the format that we kept the public key before, kept it for the uploaded keys as well
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.
also regarding this, do we need to store the public key at all in our db?
does not look like we do anything with it
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.
At this moment, we allow the users to visualize the public key in the Developer Keys section.
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.
LGTM.
Only suggestion i would have is that the getAccounts method receives both include params as an object.
But since it's just 2 optional "includes", I'm fine with it like this as well.
* feat: allow multiple keys per wallet address * test: remove revoke/register tests * feat: rename name to nickname * feat: include wallet keys in response * fix: update revoke key endpoint
Context
Changes