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

New Blob Encoding, Re: Proto's Specs on Encoding Blobs More Efficiently #7

Draft
wants to merge 8 commits into
base: 4844/rebase
Choose a base branch
from

Conversation

angel-ding-cb
Copy link
Collaborator

Description

This is an implementation of Proto's [specs] (ethereum-optimism#8657) on the new blob encoding method for 4844.

Instead of ignoring 1 byte of each field element, we now combine 4 of those remaining bytes together and encode 3 bytes of data into it.

Tests

Wrote tests for small and large data encoding and decoding and invalid blobs.

Metadata

protolambda and others added 4 commits December 19, 2023 15:33
Original rebased prototype by proto, plus changes from Roberto:
- encapsulate data <-> blob conversion code, add unit tests
- update 4844 code to be compatible with latest beacon node api
- remove stray file, include one more invalid blob test
- appropriate fee bumping & blob fee estimation for blob transactions
- misc other improvements
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.

3 participants