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

Change for 7702 for devnet-4 #7590

Merged
merged 17 commits into from
Oct 28, 2024
Merged

Change for 7702 for devnet-4 #7590

merged 17 commits into from
Oct 28, 2024

Conversation

ak88
Copy link
Contributor

@ak88 ak88 commented Oct 11, 2024

New spec for 7702 here:
https://eips.ethereum.org/EIPS/eip-7702

Changes

  • PER_AUTH_BASE_COST now costs 15.000
  • Fields are bounded as:
    assert auth.chain_id < 2 **64
    assert auth.nonce < 2 **64
    assert len(auth.address) == 20
    assert auth.y_parity < 2 **8
    assert auth.r < 2 **256
    assert auth.s < 2 **256
  • A zero address delegation will now reset the account to no code.
  • EXTCODEHASH returns 0 on empty accounts as well.

Tuple fields have been bounded by their type during RLP serialization/deserialization, so any field exceeding the bounds will result in RlpException

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

@MarekM25 MarekM25 changed the base branch from master to pectra_devnet_4 October 14, 2024 14:58
@MarekM25 MarekM25 changed the base branch from pectra_devnet_4 to master October 14, 2024 14:59
private bool ValidateAuthoritySignature(Signature signature)
{
UInt256 sValue = new(signature.SAsSpan, isBigEndian: true);

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this not needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It went from invalidating the tx to just invalidating the tuple instead, so the check is now in TransactionProcessor.

@ak88 ak88 requested a review from LukaszRozmej October 25, 2024 13:34
Copy link
Contributor

@smartprogrammer93 smartprogrammer93 left a comment

Choose a reason for hiding this comment

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

LGTM

@ak88 ak88 merged commit 596b619 into master Oct 28, 2024
75 checks passed
@ak88 ak88 deleted the feature/7702-devnet-4 branch October 28, 2024 11:18
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