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

Add proof validation to batch poster #301

Merged
merged 6 commits into from
Nov 12, 2024
Merged

Add proof validation to batch poster #301

merged 6 commits into from
Nov 12, 2024

Conversation

zacshowa
Copy link
Member

Closes #291

This PR:

Adds calls to the espresso validation code to the batch poster to validate the namespace proof and merkle proof in a TEE.

This PR also adds sets the switch delay threshold field in the builder configs for the tests in system_tests/espresso_sovereign_sequencer_test.go as previously it was not set.

This PR does not:

Add any new tests for this logic, it should already be covered by the tests of the validation code itself.

Key places to review:

Additions in arbnode/batch_poster.go
Addition in system_tests/espresso_sovereign_sequencer_test.go

How to test this PR:

Run the E2E test with go test -run ^TestEspressoE2E github.com/offchainlabs/nitro/system_tests -v

Things tested

Building the docker image locally, passing the E2E test locally

Adds calls to the espresso validation code to the batch poster to
validate the namespace proof and merkle proof in a TEE
Copy link

@Sneh1999 Sneh1999 left a comment

Choose a reason for hiding this comment

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

Small nits but otherwise LGTM!

arbnode/batch_poster.go Outdated Show resolved Hide resolved
arbnode/batch_poster.go Outdated Show resolved Hide resolved
@zacshowa zacshowa merged commit 826d180 into integration Nov 12, 2024
11 checks passed
@zacshowa zacshowa deleted the add-validation branch November 12, 2024 18:54
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.

Integrate Espresso validation code in batch poster
3 participants