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(l1): blob additional validations #1178

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

rodrigo-o
Copy link
Contributor

@rodrigo-o rodrigo-o commented Nov 14, 2024

Motivation

We need to validate blob bundles through their commitments and proofs.

Description

Tis PR moves the Blob bundles validation to the blobs_bundle module in the common crate, it perform early return validations regarding the length of the blobs, commitments and proofs and after that validate both the versioned hashes in the transactions as well as the commitments and proofs generated.

Apart from that a couple of convinience functions were added, specially a way to generate a BlobsBundle from blobs (with both commitments and proofs) as well as a generation of the versioned hash from a BlobsBundle. Apart from that a useful function from l2 utils was moved to this module to be able to generate blobs from bytes.

TODO:
Closes #issue_number

@rodrigo-o rodrigo-o marked this pull request as ready for review November 16, 2024 00:41
@rodrigo-o rodrigo-o requested a review from a team as a code owner November 16, 2024 00:41
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