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

Introduce Bytecode ID Helpers #3640

Open
danielbate opened this issue Jan 29, 2025 · 0 comments · May be fixed by #3641
Open

Introduce Bytecode ID Helpers #3640

danielbate opened this issue Jan 29, 2025 · 0 comments · May be fixed by #3641
Assignees
Labels
feat Issue is a feature

Comments

@danielbate
Copy link
Member

Continuing from #3624, we should also provide some helper functions to aid the computing of both bytecode and legacy blob IDs:

  • data_offset: u64(bytecode[8..16])
  • configurables_offset: u64(bytecode[16..24)]
  • bytecode_id: sha256(bytecode[start..configurables_offset])
  • legacy_blob_id: sha256(bytecode[start..data_offset])
@danielbate danielbate added the feat Issue is a feature label Jan 29, 2025
@danielbate danielbate self-assigned this Jan 29, 2025
@danielbate danielbate linked a pull request Jan 29, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Issue is a feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant