Skip to content
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

Support signatures produced by Polkadot JS signRaw #30

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

shamsasari
Copy link
Contributor

@shamsasari shamsasari commented Jul 31, 2024

signRaw silently wraps the raw bytes with <Bytes> and </Bytes> before signing it. The verify() functions for SignedVoteRequest and SignedRemoveVoteRequest will try to verify with and without this wrapping to support both cases.

The REST API has also been updated to be support hex strings beginning with 0x.

@shamsasari shamsasari requested a review from noah-foltz July 31, 2024 12:52
@shamsasari shamsasari force-pushed the shams-verify-sign-raw-js branch from 5a77def to 3ffaf76 Compare July 31, 2024 13:17
noah-foltz
noah-foltz previously approved these changes Jul 31, 2024
This function wraps the raw bytes with `<Bytes>` and `</Bytes>` before signing it. The `verify()` functions for `SignedVoteRequest` and `SignedRemoveVoteRequest` will try to verify with and without this wrapping to support both cases.
@shamsasari shamsasari force-pushed the shams-verify-sign-raw-js branch from 530bb12 to 457dac8 Compare July 31, 2024 14:05
@shamsasari shamsasari merged commit 30fdfc5 into main Jul 31, 2024
1 check passed
@shamsasari shamsasari deleted the shams-verify-sign-raw-js branch July 31, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants