π»ββοΈ Propter polar bear: canonical rollup protocol - #1
Open
iChristwin wants to merge 2 commits into
Open
iChristwin wants to merge 2 commits into
iChristwin wants to merge 2 commits into
Conversation
Use four-byte slots, authenticated packed meter state, and a clean documented implementation. Co-authored-by: I. Christwin <52095470+iChristwin@users.noreply.github.com>
Keep account, nonce, and words as the read interface. Update packing coverage and README. Validation: 22 Solidity tests pass under the CI profile, including 16,384 invariant calls. Co-authored-by: I. Christwin <52095470+iChristwin@users.noreply.github.com>
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.
π»ββοΈ This makes packed, proven meter state the Rollup protocol: contracts read current account/nonce words and full public keys directly, while commits carry sparse absolute replacements rather than complete code snapshots.
M3ter,idandslotconsistently.Validation: 22 Solidity tests passed, including 1,024 packing-fuzz cases and 16,384 invariant updates. The Rust-generated statement matches Solidity. Local Osaka transactions measured 7,690,146 gas for 512 reused slots with a mock verifier, a 6,682-gas increase from three-byte IDs. Mock ceilings are 1,117 reused / 521 fresh slots (ordinary values); production batches use lower budgeted limits.
Deployment requires replacing the verifier, program-key and M3ter TODO constants and using the matching prover release. This replaces the storage layout and does not migrate existing deployed state. Benchmark verifiers are mocks, not production proof verification.
Companion PR: M3tering/Prover#13
Co-authored with @iChristwin π»ββοΈ