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
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 insystem_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