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(EVM): Store unpadded EVM bytecode length in versioned bytecode hash #1066

Merged

Conversation

0xVolosnikov
Copy link

@0xVolosnikov 0xVolosnikov commented Nov 18, 2024

What ❔

The previously used versioned bytecode hash encoding is inefficient. For EVM contracts, we can store the length of the original unpadded EVM bytecode directly in the hash to simplify the logic of EXTCODESIZE.

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

@0xVolosnikov 0xVolosnikov marked this pull request as draft November 18, 2024 12:29
@0xVolosnikov 0xVolosnikov mentioned this pull request Dec 13, 2024
3 tasks
@0xVolosnikov 0xVolosnikov force-pushed the evm-emulator/change-versioned-hash-format branch from 37e712f to 9f23a69 Compare December 13, 2024 12:03
@0xVolosnikov 0xVolosnikov changed the base branch from stable/evm-emulator to evm-emulator/fixes December 13, 2024 12:04
@0xVolosnikov 0xVolosnikov force-pushed the evm-emulator/change-versioned-hash-format branch from 0f5bd8d to 934d87f Compare December 16, 2024 12:59
@0xVolosnikov 0xVolosnikov force-pushed the evm-emulator/change-versioned-hash-format branch from 934d87f to 32b9ef0 Compare December 16, 2024 13:01
@0xVolosnikov 0xVolosnikov marked this pull request as ready for review December 16, 2024 16:14
@0xVolosnikov 0xVolosnikov merged commit 93b77a0 into evm-emulator/fixes Dec 16, 2024
19 of 21 checks passed
@0xVolosnikov 0xVolosnikov deleted the evm-emulator/change-versioned-hash-format branch December 16, 2024 16:17
@0xVolosnikov 0xVolosnikov restored the evm-emulator/change-versioned-hash-format branch December 19, 2024 09:39
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