feat: add DERIVATION_VERSION_1 protocol constant#3612
Merged
Conversation
Alt-DA commitment batcher txs prefix calldata with version byte 0x01 per OP Stack alt-DA.
2 tasks
Contributor
❌ base-std fork tests did not runThe build or setup step failed before any tests could execute. Check the workflow logs for details. |
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.
wire up alt-DA derivation version constant for privacy L3 dual-write:
Summary
DERIVATION_VERSION_1(0x01) next to existingDERIVATION_VERSION_0(0x00) inbase-protocolContext: what is derivation version?
L2 nodes derive history by reading batcher txs on L1. Each batch-related L1 tx starts with a 1-byte tag so the node knows how to interpret the rest of the calldata:
0x00DERIVATION_VERSION_00x01DERIVATION_VERSION_10x00 ++ frames) from the DA server (S3).Dual-write (PRIV-1972) posts both per batch: a v0 calldata tx (primary, nodes use today) and a v1 commitment tx (shadow, points to the same bytes in S3). This PR only names the v1 byte; the batcher and derivation resolver wire it up in follow-on PRs.
Test plan
cargo check -p base-protocoltype=routine
risk=low
impact=sev5