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

Correctly sign non legacy transaction without EIP155 #647

Merged
merged 3 commits into from
May 13, 2024

Conversation

alisinabh
Copy link
Contributor

@alisinabh alisinabh commented Apr 29, 2024

Motivation

Correctly sign non-legacy transactions with y_parity value instead of EIP155 value.

Solution

Only use with_chain_id method if transaction type is legacy.

This PR is in a PoC state and opened for discussion.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@DaniPopes
Copy link
Member

@prestwich prestwich marked this pull request as ready for review May 13, 2024 14:05
@prestwich prestwich merged commit 77458dd into alloy-rs:main May 13, 2024
24 checks passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* Add tx_type method to transaction

* Remove chain_id from sign_hash_async

* refactor: remove txtype from interface

---------

Co-authored-by: James <[email protected]>
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.

4 participants