ZK Coprocessors & Verifiable Compute Guide
Master zero-knowledge coprocessors and verifiable computation. Learn how Axiom, Brevis, RISC Zero, and emerging protocols enable trustless off-chain computation for DeFi, RWA, and AI.
1. What Are ZK Coprocessors?
A ZK coprocessor is a system that takes blockchain data, runs computation off-chain, and produces a zero-knowledge proof that the results are correct. This proof is then verified on-chain through a smart contract, typically at a fraction of the cost of executing the computation directly on the blockchain.
We wrote this guide because the existing explanations online are either too simplified or assume PhD-level knowledge. Neither serves most readers.
Think of it as outsourcing heavy computational work to a specialized processor while maintaining complete transparency and trustlessness. The coprocessor operator cannot cheat or lie about the result—the cryptographic proof proves the computation was done correctly without revealing intermediate steps.
ZK coprocessors are emerging as a "Verifiable Service Layer" that bridges multiple blockchain ecosystems (DeFi, RWA, AI, identity). Unlike centralized APIs, they provide cryptographic guarantees that data queries and computations are accurate.
This solves a critical blockchain problem: how to perform expensive computations on-chain without paying astronomically high gas fees. On Ethereum, complex state queries or aggregations cost thousands to millions in gas. Through a ZK coprocessor, the same computation costs pennies to verify.
The gap is widening fast. As of April 2026, Ethereum Layer 1 gas costs remain high ($50-$500 per complex transaction), while ZK proof verification costs $0.01-$10 depending on proof complexity. For applications requiring frequent data updates or calculations, ZK coprocessors provide 100-1000x cost reduction.
Learn about ZK proofs fundamentals →2. How ZK Coprocessors Work (Architecture)
Understanding the architecture helps explain why ZK coprocessors are powerful yet complex. The system involves several key components:
The Three-Step Flow
- Step 1: Data Preparation — A smart contract or user submits a data request to the coprocessor (e.g., "prove that these 100 DeFi protocols have combined TVL of $500 billion as of block 21,500,000"). The coprocessor indexes historical blockchain data or queries a database.
- Step 2: Off-Chain Computation — The coprocessor runs the requested computation in a specialized execution environment. For simple aggregations, this takes seconds. For complex AI model inference or cryptographic proofs, this can take minutes to hours.
- Step 3: Proof Generation & Verification — The coprocessor generates a ZK proof that the computation was done correctly, then submits this proof to a smart contract. The contract verifies the proof (typically in under 1 second) and accepts the result as truth.
Key Components
- Data Source Layer — Most coprocessors connect to Ethereum archival nodes or layer 2 data. Some (like Lagrange and Space and Time) accept SQL queries on indexed blockchain or real-world data. Others (like Axiom and Herodotus) focus on verifying historical Ethereum state.
- Computation Layer — This is where the actual work happens. Simple operations (aggregations, filtering) run fast. Complex operations (AI inference, cryptographic operations) require specialized hardware. RISC Zero uses general-purpose RISC-V processors; Brevis uses optimized circuits for specific blockchain operations.
- Proof System — The coprocessor generates proofs using cryptographic backends. Most use either zk-STARKs (transparent, quantum-resistant, larger proofs) or zk-SNARKs (smaller proofs, require trusted setup). RISC Zero uses STARKs; Axiom uses zk-SNARKs. This choice affects proof size, verification time, and developer experience.
- Verifier Contract — A smart contract on-chain that verifies the proof. This contract is generic—it works for any proof generated by that coprocessor, as long as the proof format matches.
Example: Axiom on Ethereum
Axiom enables DeFi protocols to query Ethereum's historical state (past balances, transaction history, logs) without re-executing blocks. A DeFi protocol might ask: "Prove that at block 21.5M, address 0xabc... held exactly 1,000 ETH." Axiom indexes all Ethereum blocks, generates a ZK proof for the lookup, and submits it on-chain. The protocol receives a cryptographically verified answer for ~$5 instead of $50,000+ in gas.
Learn about Ethereum's layer 2 scaling →3. zkVM vs zkCoprocessor — Key Differences
These terms are often confused. Both use zero-knowledge proofs but serve different purposes:
Zero-Knowledge Virtual Machine (zkVM)
A zkVM is a general-purpose execution engine that can run arbitrary programs with cryptographic proofs of correctness. It's designed for universal computation—any algorithm you can code, you can prove execution of via a zkVM.
- Examples: RISC Zero (RISC-V instruction set), Cairo (StarkWare), Valida (0xPARC)
- Flexibility: Can handle any computation—sorting algorithms, AI models, cryptographic operations, simulation engines
- Trade-off: More overhead and complexity for the prover. Proof generation takes longer, consumes more resources, generates larger proofs
- Use case: When you need to prove execution of arbitrary code—verifying AI model inference, proving a game simulation result, or validating a complex algorithm
ZK Coprocessor
A ZK coprocessor is a more specialized, plug-and-play service designed for specific, high-value use cases. It's optimized for particular scenarios rather than universal computation.
- Examples: Axiom (state queries), Brevis (data aggregation), Lagrange (SQL queries), Herodotus (historical data)
- Specialization: Optimized for concrete problems—querying blockchain state, aggregating event logs, executing SQL queries, proving historical balances
- Trade-off: Less flexible but faster, cheaper, easier to use. Designed to "just work" for common DeFi/Web3 needs
- Use case: When you need to prove something very specific and common—"prove this address's historical balance," "prove this TVL calculation," or "prove these 50 events occurred in this order"
Use RISC Zero (zkVM) if you're building novel use cases or need to prove execution of custom logic. Use Axiom or Brevis (zkCoprocessor) if you're a DeFi protocol needing state verification or data aggregation. zkCoprocessors are more like "blockchain APIs with proofs"; zkVMs are more like "trustless AWS Lambda."
The market is developing both paths. zkVMs will dominate for research and novel use cases. ZK coprocessors will dominate for production DeFi because they're simpler and cheaper for common operations.
4. Top ZK Coprocessor Protocols Compared
Here are the market leaders in the ZK coprocessor and zkVM space as of April 2026:
| Protocol | Focus Area | Technology | Primary Use Case |
|---|---|---|---|
| Axiom | Ethereum state queries | zk-SNARKs, Halo2 | Proving Ethereum historical balances, smart contract state, event logs |
| Brevis | Hybrid ZK + data aggregation | ZK circuits + zkVM | Cross-chain data proofs, DeFi analytics, TVL calculations |
| RISC Zero | General-purpose zkVM | zk-STARKs, RISC-V | Arbitrary computation proofs, AI model verification, gaming |
| Lagrange | SQL queries with ZK | zk-SNARKs over databases | RWA verification, blockchain data SQL queries, attestations |
| Herodotus | Historical blockchain state | Storage proofs | Proving historical Ethereum state, cross-chain state roots |
| Space and Time | Verifiable database | zk-SNARKs + indexing | Querying indexed Web3 data with cryptographic proofs |
Protocol Deep-Dives
Axiom: The Ethereum State Oracle
Axiom proves facts about Ethereum's historical state without re-executing blocks. It uses zk-SNARKs with the Halo2 proving system. Key features:
- What it proves: Account balances, smart contract storage values, transaction existence, event logs from past blocks
- Cost: ~$5-$50 per proof depending on query complexity (vs. $50,000+ for on-chain re-execution)
- Speed: Proofs generated within seconds to minutes
- Target market: DeFi protocols needing historical data for yield calculations, collateral audits, or settlement logic
Brevis: Hybrid ZK Data Coprocessor
Brevis combines ZK circuits for specific operations with a zkVM for flexibility. It acts as both a specialized coprocessor and a general-purpose proving engine.
- Unique feature: Can aggregate data from multiple blockchains (Ethereum, Polygon, Arbitrum) into a single ZK proof
- Use case: Cross-chain DeFi analytics, multi-chain TVL proofs, unified state verification across L1 and L2s
- Proof system: Flexible (can use STARKs or SNARKs depending on use case)
RISC Zero: General-Purpose zkVM
RISC Zero is a general-purpose zkVM based on the RISC-V instruction set and zk-STARKs. Any code compiled to RISC-V can be proven.
- Flexibility: Can prove execution of Rust, C, C++, and other languages compiled to RISC-V
- Proof properties: Transparent (no trusted setup), quantum-resistant (STARKs), larger proofs (~100-200 KB)
- Emerging use cases: AI model inference verification, gaming state proofs, complex algorithmic verification
- Trade-off: Slower proof generation and larger on-chain verification costs than SNARKs, but more flexible and trustless
Lagrange: SQL with Proofs
Lagrange enables SQL queries over blockchain data with ZK proofs of correctness. Write SQL, get a proof that the query result is accurate.
- Developer experience: Extremely accessible—if you know SQL, you can write verified queries
- Use case: RWA (real-world asset) verification, proving ownership of tokenized assets, auditing transaction history
- Data source: Indexed blockchain data, can support off-chain databases too
Herodotus: Historical State Proofs
Herodotus focuses on proving facts about past blockchain states using storage proofs. Specialized in Ethereum historical data.
- Innovation: Can prove Ethereum state from arbitrary past blocks without indexing all data on-chain
- Use case: Proving ownership of assets at a specific point in time, historical voting rights, past balance verification
Space and Time: Verifiable Database
Space and Time provides a verifiable SQL database indexed with blockchain data. Execute SQL queries and receive cryptographic proofs.
- Scope: Broader than blockchain-only—can query real-world data sources too, with proofs
- Use case: DeFi oracle replacement, RWA data verification, cross-chain data aggregation
5. Real-World Use Cases in DeFi & Beyond
ZK coprocessors aren't theoretical—they're solving real problems in production crypto applications as of April 2026:
DeFi Use Cases
- TVL Calculation for Yield Distribution: A DeFi protocol needs to calculate total value locked across multiple pools to distribute yield fairly. Axiom can prove the TVL snapshot from past blocks. Instead of requiring users to update state on-chain (expensive), the protocol queries Axiom once, gets a proof, and uses that proof to settle yields. Cost: $10-$50 instead of $50,000+.
- Cross-Chain Collateral Verification: A protocol needs to verify a user's collateral on Ethereum before lending on Arbitrum. Brevis proves the user's ETH balance on Ethereum (block 21.5M) to the Arbitrum contract. The Arbitrum contract verifies the proof instantly, no bridge needed, no delay.
- Historical Liquidation Audits: A DeFi protocol wants to audit past liquidations to ensure collateral was sold fairly. Axiom proves the collateral prices at the liquidation timestamp came from a specific on-chain oracle, providing tamper-proof evidence.
- Governance Snapshots: DAO governance often uses block-based snapshots (voting rights frozen at block N). Axiom can prove a user's balance at an old block without storing historical balances on-chain, saving storage costs.
Real-World Asset (RWA) Verification
- Tokenized Real Estate: A tokenized real estate protocol wants to prove that a property was appraised at $500K by a licensed appraiser on January 2026. Lagrange executes a SQL query over appraiser data (signed by the appraiser), generates a proof, and the smart contract verifies it. Now the property tokenization has cryptographic proof of appraisal.
- Supply Chain Audits: A company tokenizes carbon credits. Space and Time maintains a verifiable database of carbon offset projects. Buyers query the database, receive proofs that specific offsets actually occurred in verified locations.
Cross-Chain Scenarios
- State Root Proofs: Herodotus can prove Ethereum state roots (the hash of Ethereum's entire state tree) to any other chain. This enables cross-chain protocols to access Ethereum state trustlessly without relying on bridges.
By April 2026, these protocols are merging into a conceptual "Verifiable Service Layer" that bridges DeFi, RWA, AI, and digital identity. The vision: any computation or data query relevant to crypto/Web3 can be verified through a ZK proof instead of centralizing trust in a single oracle or third party.
6. ZK Coprocessors and AI Verification
One of the most exciting emerging applications for ZK coprocessors is AI model verification. As AI becomes more prevalent in DeFi (price prediction models, risk assessment, automated trading), the need to prove "this AI model actually generated this output" becomes critical.
The AI Verification Problem
Current AI systems are often black boxes. If a DeFi protocol uses an AI model for price prediction or risk assessment, how do users know the model is actually being run as claimed? The operator could be using old data, a manipulated model, or not running the model at all. This is where ZK coprocessors enter.
Using RISC Zero for Model Verification
RISC Zero enables developers to:
- Compile an AI model (e.g., PyTorch, TensorFlow) to RISC-V bytecode
- Run inference on the model with specific input data
- Generate a ZK proof that proves: "This exact model, with this exact input, produced this exact output"
- Submit the proof on-chain—smart contracts can now verify the AI output without re-running the model
Example: A trading protocol uses an AI model to predict Ethereum price movements. Every hour, the AI model outputs a prediction. Instead of requiring users to trust the operator, the operator generates a RISC Zero proof that the prediction came from the stated model and data, then submits the proof on-chain. Users see proof of model execution; the operator doesn't expose proprietary model architecture.
Implications
- Verifiable AI in DeFi: Loans based on AI risk assessment can be proven to use the stated model, reducing lender risk of model manipulation.
- AI Model Markets: Developers can sell AI models on-chain, with proofs that the deployed version matches the claimed model.
- Gaming & Metaverse: Proving game outcomes were generated by the fair game logic (not favoritism or bugs).
As of April 2026, AI model verification via ZK is still emerging—proof generation is resource-intensive for large models—but it's an active frontier. Expect significant progress as hardware acceleration improves.
Learn about blockchain oracles and alternatives →7. Risks & Limitations
While ZK coprocessors are powerful, they come with real limitations and risks developers must understand:
Maturity & Implementation Risk
Most ZK coprocessor protocols are 1-3 years old (as of April 2026). Axiom, Brevis, and RISC Zero are production-ready, but they're still being actively upgraded. Bugs in the proving system or verifier contract could lead to accepted invalid proofs. Each protocol carries unique implementation risk.
Proof Generation Overhead
While verification is cheap, proof generation is expensive. Complex computations (e.g., proving AI model inference) can take hours or days on consumer hardware. Some protocols require specialized hardware (GPUs, FPGAs). This cost is amortized—if one proof services thousands of users, the per-user cost is negligible. But for small-scale applications, it can be prohibitive.
Data Availability Dependency
Many ZK coprocessors rely on having access to full historical blockchain data. If a blockchain prunes old state (to save space), coprocessors may not be able to prove facts about old blocks. Ethereum's shift toward stateless execution could eventually complicate Axiom-like services. This is a long-term risk, not immediate.
Proof Size and Verification Cost Differences
- STARKs (RISC Zero): Transparent and quantum-resistant, but larger proofs (100+ KB). Verification cost higher on-chain.
- SNARKs (Axiom, Lagrange): Smaller proofs (1-2 KB), cheaper verification, but require trusted setup. Quantum threat is theoretical but exists.
Choose based on your security model. If you prioritize quantum-resistance, STARKs win. If you prioritize on-chain efficiency, SNARKs win.
ZK proofs rely on unproven mathematical assumptions (elliptic curves, hash functions are one-way). A breakthrough in cryptanalysis could break all ZK systems. This is the same risk as all public-key cryptography, but worth acknowledging. Diversifying across multiple proof systems (STARK and SNARK) provides insurance.
User Verification Burden
Users must trust that coprocessor operators actually generated valid proofs. A malicious operator could submit invalid proofs hoping the on-chain verifier misses them. While the math prevents this, implementation bugs in verifier contracts are possible. Always audit verifier smart contracts before relying on a coprocessor.
Limited to Supported Operations
Each ZK coprocessor supports specific operations. Axiom proves Ethereum state queries; Lagrange proves SQL queries; RISC Zero proves arbitrary RISC-V code. If your use case doesn't fit these molds, you may need to build custom proving systems, which is extremely complex.
Infrastructure Centralization Risk
If a coprocessor operator goes offline or becomes censorious, that service is unavailable. Decentralization is an open problem—most coprocessors are currently run by small teams. The ideal future is community-operated, incentive-aligned proving networks, but that's still emerging.
Learn about data availability challenges in scaling →8. Frequently Asked Questions
How much does it cost to use a ZK coprocessor?
Costs vary by protocol and operation:
- Axiom: $5-$50 per query, depending on complexity
- RISC Zero: Proof generation is free (open-source), but specialized hardware acceleration can cost money; on-chain verification: $1-$10
- Brevis: Pricing model still evolving; expect similar to Axiom
Compare this to on-chain computation: a complex state query on Ethereum costs $10,000-$100,000 in gas. ZK coprocessors offer 100-1000x savings.
What happens if a ZK coprocessor goes offline?
Your smart contracts can't rely on the coprocessor anymore. Any application dependent on its proofs is stuck. This is why decentralization and redundancy matter. As the space matures, protocols may run multiple coprocessor operators in parallel, or transition to community-operated networks.
Can ZK coprocessors prove false statements?
No, not without breaking the underlying cryptography. A ZK proof is a mathematical proof—if the proof verifies, the statement is true. However, bugs in the implementation (verifier contract, proof system) could theoretically accept invalid proofs. This is why audits and open-source implementations matter.
Is a ZK coprocessor the same as a blockchain oracle?
No. Blockchain oracles (Chainlink, Pyth) bring external data onto the blockchain. They require trusting the oracle operator. ZK coprocessors prove computations or state facts about existing blockchain data without requiring trust in the operator—the proof itself is the guarantee. ZK coprocessors can supplement oracles by proving oracle data is authentic.
Which proof system should I choose—STARK or SNARK?
STARKs (RISC Zero):
- Transparent, quantum-resistant, flexible, larger proofs
- Good for: General-purpose computation, future-proofing
SNARKs (Axiom, Lagrange):
- Smaller proofs, faster verification, require trusted setup
- Good for: High-frequency operations, cost-sensitive applications
For most DeFi use cases in 2026, SNARKs are better. For long-term security and novel applications, STARKs are better.
What's the timeline for ZK coprocessors to become mainstream?
As of April 2026, ZK coprocessors are transitioning from "interesting but experimental" to "production-ready for specific use cases." Axiom is used by several DeFi protocols; RISC Zero is used for gaming and simulation proofs. Expect mainstream adoption in the following timeline:
- Now-2026: Early adopter protocols integrate ZK coprocessors for specific high-value operations (TVL calculations, cross-chain proofs)
- 2027-2028: ZK coprocessors become standard infrastructure layer, like oracles are now
- 2028+: Decentralized proving networks emerge, allowing any participant to run a prover and earn fees