EIP-0045: Native STARK Proof Verification Opcode#103
Open
a-shannon wants to merge 3 commits into
Open
Conversation
Adds a native verifyStark opcode to the Ergo protocol, enabling post-quantum verifiable computation via hardcoded zkVM registries (RISC Zero, SP1, Valida). Key features: - BabyBear Ext16 field with >=128-bit PQ security (no grinding) - Registry-based zkVM AIR architecture (not generic AIR) - AOT-safe JIT cost model with fail-fast and negative value guards - Batched Merkle openings + Radix-8 FRI folding - Proposes maxTransactionSize increase from 96 KB to 256 KB - Soft-fork activation via miner voting
Author
|
Reference implementation PR: ergoplatform/sigmastate-interpreter#1116 Current test coverage: 159 tests across 3 suites:
|
added 2 commits
April 30, 2026 11:25
Companion document for EIP-0045 providing: - JIT complexity barrier motivation (Section 1) - BabyBear Ext16 tower + Poseidon1/Blake2b-256 instantiation (Section 2) - DEEP-FRI protocol mechanics with Montgomery batch inversion (Section 3) - 4 formal adversary games with BCS QROM reduction (Section 4) - AOT DoS shield guarantee (Section 5) Key result: Q=35, B=2048 satisfies lambda_PQ >= 128 with 1 bit of margin under the BCS quadratic extraction penalty (2^256 * 2^-385 = 2^-129).
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
This EIP proposes a native
verifyStarkopcode for Ergo, enabling post-quantum STARK proof verification as a first-class L1 primitive.The opcode verifies proofs for registered verifier profiles rather than arbitrary AIR. Each
vmTypemaps to an immutable consensus profile fixing the field, extension tower, Merkle hash, Fiat-Shamir hash, FRI parameters, proof format, public-input format, and cost table version.What
verifyStark(proofChunks, publicInputs, imageId, vmType, costParams)vmTyperegistry for audited STARK/zkVM profiles, not generic user-supplied AIRvmType,imageId,publicInputs, and cost parameters are domain-separated before challenge generationNetwork Parameter Proposal
This EIP proposes increasing
maxTransactionSizefrom 96 KB to 256 KB.With Poseidon1 Merkle commitments using 52-byte digests:
Security Model
Companion Material
Feedback is especially welcome on the verifier profile registry, transcript domain separation, AOT cost model, and activation path.