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 public key recovery for EIP-155 transactions #1977

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jprudent
Copy link

What does this PR do?

It supports recovery of public keys when the transaction use the anti replay protection (EIP 155)

Where should the reviewer start?

PR is quite short

Why is it needed?

Most of txs are protected with EIP 155

MAIN_NET(1);
MAIN_NET(1),
GOERLI(5),
SEPOLIA(58008);
Copy link
Contributor

Choose a reason for hiding this comment

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

Sepolia ChainId is 11155111?

MAIN_NET(1),
GOERLI(5),
SEPOLIA(58008);

Copy link
Contributor

Choose a reason for hiding this comment

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

Plz add Holesky chainId too 17000

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 69.20%. Comparing base (9ee5b4f) to head (89e5032).
Report is 45 commits behind head on master.

Files Patch % Lines
utils/src/main/java/org/web3j/commons/ChainId.java 0.00% 3 Missing ⚠️
crypto/src/main/java/org/web3j/crypto/Sign.java 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1977      +/-   ##
============================================
+ Coverage     68.45%   69.20%   +0.75%     
- Complexity     3005     3117     +112     
============================================
  Files           488      493       +5     
  Lines         12568    13091     +523     
  Branches       1643     1691      +48     
============================================
+ Hits           8603     9060     +457     
- Misses         3485     3540      +55     
- Partials        480      491      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

None yet

3 participants