OP Stack is the set of software components that run the Optimism rollup and can be deployed independently to power third-party rollups.
By default, OP Stack sequencers write batches to Ethereum in the form of calldata or 4844 blobs to commit to the transactions included in the canonical L2 chain. In Alt-DA mode, OP Stack sequencers and full nodes are configured talk to a third-party HTTP server for writing and reading tx batches to and from DA. Optimism's Alt-DA spec contains a more in-depth breakdown of how this works.
To implement this server spec, 0G DA provides the da-server, which can be run alongside OP Stack sequencers and full nodes to securely communicate with the 0G DA Client.
Next deploy the OP Stack components according to the official OP Stack deployment docs, but with the following modifications:
In the op-node rollup.json
configuration the following should be set:
{
"plasma_config": {
"da_challenge_contract_address": "0x0000000000000000000000000000000000000000",
"da_commitment_type": "GenericCommitment",
"da_challenge_window": 300,
"da_resolve_window": 300
}
}
The following configuration values should be set to ensure proper communication between op-node and da-server.
--plasma.enabled=true
--plasma.da-server=http://localhost:3100
--plasma.verify-on-read=false
--plasma.da-service=true
The following configuration values should be set accordingly to ensure proper communication between OP Batcher and da-server.
--plasma.enabled=true
--plasma.da-server=http://localhost:3100
--plasma.verify-on-read=false
--plasma.da-service=true