feat(op-devstack): add AltDA sysgo support with e2e test#338
Open
fakedev9999 wants to merge 4 commits intovalidium-supportfrom
Open
feat(op-devstack): add AltDA sysgo support with e2e test#338fakedev9999 wants to merge 4 commits intovalidium-supportfrom
fakedev9999 wants to merge 4 commits intovalidium-supportfrom
Conversation
Add WithAltDA() option to sysgo orchestrator that starts an in-memory DA server and configures batcher + op-node for AltDA mode with GenericCommitment (no on-chain challenge contract needed). Changes: - New da_server.go: WithAltDA() starts DA server during Deploy phase, appends batcher and L2CL options for AltDA configuration - l2_cl.go: Add AltDA and RollupAltDAConfig fields to L2CLConfig - l2_cl_opnode.go: Apply cfg.AltDA to op-node config; override rollup AltDAConfig when RollupAltDAConfig is set - New altda e2e test: verifies safe head advances and L1 batch txs contain commitments (version 0x01), not raw batch data
The op-succinct validity proposer runs as a subprocess and needs the DA server URL to fetch batch data during AltDA proof generation. Set ALTDA_SERVER_URL in the process environment so it's inherited by spawned subprocesses.
7 tasks
The deploy-oracle step must compile fetch-l2oo-config with the same Cargo features as the proposer binary. Otherwise the vkey commitment derived from the standard range ELF won't match the AltDA range ELF used by the proposer, causing a startup validation failure. Add Features field to L2OOConfigs and WithL2OOFeatures option, and pass features through to `just deploy-oracle <env> <features>`.
The Rust AltDA data source only supports Keccak256 commitments (type 0x00) which are self-verifying inside the zkVM proof. Switch the DA server and rollup config from Generic (0x01) to Keccak256 mode. A dummy DAChallengeAddress is set to satisfy rollup config validation; the challenge contract is never used in e2e tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WithAltDA()sysgo option that starts an in-memory DA server and configures the batcher + op-node for AltDA mode withGenericCommitment(no on-chain challenge contract needed)L2CLConfigwithAltDAandRollupAltDAConfigfields so the rollup AltDA config is applied inside op-node's own AfterDeploy hookversionByte=0x01), not raw batch dataFiles changed
op-devstack/sysgo/da_server.goWithAltDA()option: starts DA server, configures batcher + op-nodeop-devstack/sysgo/l2_cl.goAltDAandRollupAltDAConfigfields toL2CLConfigop-devstack/sysgo/l2_cl_opnode.gocfg.AltDAto op-node config; override rollupAltDAConfigwhen setop-acceptance-tests/tests/altda/init_test.goop-acceptance-tests/tests/altda/altda_test.goTest plan
go build ./op-devstack/sysgo/...compiles cleanlygo build ./op-acceptance-tests/tests/altda/...compiles cleanlyDEVSTACK_ORCHESTRATOR=sysgo go test -v -count=1 -timeout 120s ./op-acceptance-tests/tests/altda/passesversionByte=1anddataLen=9(commitment data, not raw batch)