Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

fix(core): normalize signature S #2679

Merged
merged 2 commits into from
Nov 20, 2023
Merged

Conversation

DaniPopes
Copy link
Collaborator

Motivation

bluealloy/revm#870

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@DaniPopes DaniPopes requested a review from mattsse November 20, 2023 11:50
@@ -324,6 +332,16 @@ mod tests {
assert_eq!(tx.recover_from().unwrap(), expected);
}

#[test]
fn can_recover_tx_sender_not_normalized() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is from the Anvil test removed in foundry-rs/foundry#6327 which I'll add back after this PR is merged

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm,
this should close foundry-rs/foundry#6072

@DaniPopes DaniPopes merged commit 4e09be8 into gakonst:master Nov 20, 2023
@DaniPopes DaniPopes deleted the normalize-sig-s branch November 20, 2023 12:45
@DaniPopes
Copy link
Collaborator Author

lgtm, this should close foundry-rs/foundry#6072

Before this patch it gets rejected as per k256 0.13.2. With this patch it succeeds again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants