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): also apply EIP-155 to Parity::Parity #476

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Jan 4, 2024

Motivation

I don't believe ignoring Parity (0, 1) is valid here since we get this variant when instantiating the k256 signature.

Encountered in alloy-rs/alloy#83 when applying the signer's EIP-155 chain ID after signing, which was a no-op before this PR.

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@DaniPopes DaniPopes requested a review from prestwich as a code owner January 4, 2024 23:29
@DaniPopes DaniPopes changed the title fix: also apply EIP-155 to Parity::Parity fix(primitives): also apply EIP-155 to Parity::Parity Jan 4, 2024
@DaniPopes DaniPopes merged commit d6f12eb into main Jan 4, 2024
21 checks passed
@DaniPopes DaniPopes deleted the dani/parity-chain-id branch January 4, 2024 23:46
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.

1 participant