-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add eth_getPlumeSignature RPC handler #198
base: main
Are you sure you want to change the base?
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.
The test coverage for the wallet middleware is lacking, however, we should try to make sure we add tests for additions we make going forward. Can you see if you can do that? Unfortunately we don't have a great example you can work off of, but you can kind of see how this works for existing RPC methods, e.g. personal_sign
:
eth-json-rpc-middleware/src/wallet.test.ts
Line 283 in ef36cf4
it('should sign with a valid address', async () => { |
describe
block to this file and test out the behavior of eth_getPlumeSignature
(as least as far as you can go). Can you do that? Let me know if you need help.
We should ensure that the extension team wishes to accept this change before we include it here. Just wanted to give you a heads up before you do more work on these tests, that it might be better to get buy-in from that team first. |
Great point! We have already discussed with Alex Bea, Erikson, Kumavis, and Olaf to confirm their buy-in, along with our Metamask grant proposal. Feel free to tag any of them here to confirm! |
Could you add the method as a PR to our api-specs repo as well: https://github.com/MetaMask/api-specs |
Thank you both for the great feedback!
|
Context: Implementation of a novel deterministic ECDSA signature scheme in MetaMask https://eprint.iacr.org/2022/1255
Add handler for
eth_getPlumeSignature
to unblock MetaMask/metamask-extension#17482, as we'd like to use this new RPC method to generate the signature + other necessary SNARK inputs.