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

fix(primitives): don't double-hex signature bytes in Signature#to_hex_bytes #6313

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

ArtificialPB
Copy link
Contributor

Signature bytes were first hashed into hex bytes, and then wrapped into Bytes, which hex-ed the bytes again when converting to string (e.g. Debug/Display). This would probably also lead to incorrect result being returned via eth_sign RPC call since it would return a hex of hex bytes.

@ArtificialPB ArtificialPB requested a review from gakonst as a code owner January 31, 2024 21:40
@mattsse mattsse added this pull request to the merge queue Feb 1, 2024
@mattsse mattsse added the C-bug An unexpected or incorrect behavior label Feb 1, 2024
Merged via the queue into paradigmxyz:main with commit 9193b17 Feb 1, 2024
28 checks passed
@ArtificialPB ArtificialPB deleted the fix/signature-hex branch February 1, 2024 13:19
@rswanson rswanson mentioned this pull request Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants