-
Notifications
You must be signed in to change notification settings - Fork 19
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(msa): add support for unwrapped bytes #2169
Conversation
98d1bbf
to
d37edb3
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
6a15f27
to
93820aa
Compare
4daa4d3
to
b4ec867
Compare
b4ec867
to
57d132a
Compare
7f67383
to
93293f7
Compare
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 to me.
- Reviewed code
- Pulled and tested locally
- Verified no additional
.verify
calls (outside of VerifiablePasskeySignature)
if verify_signature(&payload) { | ||
return true; | ||
} | ||
|
||
let wrapped_payload = wrap_binary_data(payload); | ||
verify_signature(&wrapped_payload) |
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.
nit: I would prefer if we check the wrapped one first as a minor optimization due to most of our signatures are being wrapped.
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.
nit: I would prefer if we check the wrapped one first as a minor optimization due to most of our signatures are being wrapped.
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.
One additional (non-blocking) comment.
Looks great!
Add support to verify signatures against unwrapped bytes. This allows for verification of signatures not using PolkadotUi. issue-2134
93293f7
to
f4f5d39
Compare
Add support to verify signatures against unwrapped bytes.
This allows for verification of signatures not using PolkadotUi.
#2134