-
Notifications
You must be signed in to change notification settings - Fork 14
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
Changing 'contents' field of a Poll Option Doesn't Change Signature #17
Comments
By the way, this happens on the backend as well. Is it a bug in the signing library? Are we misunderstanding how to use it? I'm very confused by it. |
Whoa, this is really weird. Good catch. It looks like this only happens with the poll options and not for any other fields—did you find the same thing? I tried all 4 combinations of (1) One workaround would be to include something random/variable in the But I feel like we should probably dig a bit more to figure out why this is happening. |
So one thing that seems relevant is there is a newer method called |
I'm super confused now, because I thought the whole point of creating that stringified digest was because we were actually just signing the string. But apparently not? Unclear to me what we're actually signing.
What's the exact error message. Might try grepping the MetaMask codebase at this point to see where it's being thrown from and what types they consider permissable. |
Yea, I am equally confused about this. My only guess is that it strips out unsupported types, e.g. arrays of some format. But they should be supported with
If using If using { name: 'poll_options', type: 'string' }, to { name: 'poll_options', type: 'string[]' }, Same error message is thrown if using |
Go to the Create Poll page and enter a bunch of data. Sign it, and observe the signature in the console. Change the text of one poll option, but don't change anything else about the submission. Re-submit and re-sign the data, observing the signature in the console. It will be the same. Bizarre!
The text was updated successfully, but these errors were encountered: