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

feat(host): kzg proof for blobs #370

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Conversation

zobront
Copy link
Contributor

@zobront zobront commented Jul 11, 2024

Description

Currently, when the fetcher gathers blob data, it saves the preimages for each element in the blob, but does not save the KZG proof (because it is not needed in FPVM context). However, in the ZKVM context, we need this information.

This PR creates a short term workaround to save the kzg proof as a psuedo element 4096 in the Blob type (since the blob only uses elements 0 to 4095 inclusive).

For a longer term fix, I've opened this ticket for a feature to override fetcher implementations: #369

Tests

N/A

Additional context

N/A

Metadata

N/A

@codecov-commenter
Copy link

codecov-commenter commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.7%. Comparing base (3b48fcb) to head (be48d26).
Report is 5 commits behind head on main.

Additional details and impacted files

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

Copy link
Collaborator

@clabby clabby left a comment

Choose a reason for hiding this comment

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

LGTM. Before merging, can we please put up an issue to further abstract the host? This extra piece of data eventually should be able to be added by you guys downstream.

@zobront
Copy link
Contributor Author

zobront commented Jul 11, 2024 via email

@clabby clabby added this pull request to the merge queue Jul 15, 2024
Merged via the queue into anton-rs:main with commit a6fe0ad Jul 15, 2024
19 checks passed
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