This page is for developers and researchers who want to understand the cryptographic and technical foundations of NEXUS. If you just want to build, check out the Quick Start instead.
Security Model Overview
NEXUS uses different verification mechanisms optimized for each chain:| Chain | Proof System | Verification | Finality |
|---|---|---|---|
| Bitcoin | ZK-STARK | BitVM2 fraud proofs | ~7 days (challenge period) |
| Zcash | Groth16 | Native on-chain | ~30 min (instant after proof) |
| Dogecoin | ZK-STARK | Fraud proofs | ~24 hours (challenge period) |
Key Terms
BitVM / BitVM2
BitVM / BitVM2
BitVM is a fraud proof system for Bitcoin that enables optimistic verification of arbitrary computations. NEXUS uses BitVM2 for Bitcoin verification:
- How it works: Prover posts a bond + state commitment. Anyone can challenge if they believe the state is invalid.
- Bisection game: A binary search protocol that narrows down to a single disputed computation step (~20 rounds for 1M steps).
- On-chain verification: The disputed step is verified using Bitcoin Script that emulates RISC-V operations.
- Security: Economic (prover loses bond if wrong) + permissionless (anyone can challenge).
- Timeline: 144 blocks challenge period, 72 blocks per bisection round.
Groth16
Groth16
Groth16 is a zero-knowledge proof system used by Zcash. NEXUS leverages Zcash’s native Groth16 verification:
- Trusted setup: Uses Zcash’s Sapling MPC ceremony (largest trusted setup in crypto history with 90+ participants).
- Native verification: Zcash L1 can verify Groth16 proofs directly on-chain - no fraud proofs needed.
- Proof size: ~200 bytes, constant regardless of computation size.
- Verification time: ~10ms on-chain verification.
- Why Zcash: Only UTXO chain with native ZK proof verification capability.
ZK-STARK
ZK-STARK
ZK-STARK (Zero-Knowledge Scalable Transparent ARgument of Knowledge) proofs used for Bitcoin and Dogecoin:
- No trusted setup: Unlike Groth16, STARKs don’t require a trusted ceremony.
- Post-quantum secure: Resistant to quantum computer attacks.
- Larger proofs: ~50-100KB vs Groth16’s 200 bytes.
- Used with fraud proofs: Since Bitcoin/Doge can’t verify STARKs natively, we use optimistic verification with BitVM.
- Prover time: Seconds to minutes depending on computation complexity.
Metaprotocol vs L2
Metaprotocol vs L2
NEXUS is a metaprotocol, not an L2:
| Aspect | L2 (Rollup) | Metaprotocol (NEXUS) |
|---|---|---|
| Consensus | Separate chain | Uses L1 consensus |
| Sequencer | Centralized risk | No sequencer |
| Data | Posted to L1 | Lives on L1 |
| State | Separate state | Interprets L1 state |
- Key insight: NEXUS interprets L1 transactions with additional semantics. Your vault transaction on Bitcoin IS your NEXUS state.
- No separate chain: No new consensus mechanism, no sequencer centralization risk.
Vault Architecture
Vault Architecture
Every vault is a 2-of-2 multisig with escape hatch:Pre-signed exit transactions: At vault creation, user receives a pre-signed transaction that lets them withdraw after the timelock. This transaction is valid even if NEXUS goes offline.Timelock periods:
- Bitcoin: 2016 blocks (~2 weeks)
- Zcash: 576 blocks (~1 day)
- Dogecoin: 1440 blocks (~1 day)
Proof Systems Deep Dive
Bitcoin: BitVM2 Fraud Proofs
NEXUS on Bitcoin uses optimistic verification with BitVM2:- Prover claims execution trace of N steps
- Challenger disputes
- Each round: “Is the midpoint correct?”
- After log₂(N) rounds, single step identified
- That step verified on-chain via Bitcoin Script
Zcash: Native Groth16
NEXUS on Zcash achieves true trustless verification:Dogecoin: Optimistic with Fast Finality
Similar to Bitcoin but with faster parameters:- Challenge period: 1440 blocks (~24 hours vs Bitcoin’s ~7 days)
- Bond requirements: 1000 DOGE
- Faster block times mean quicker finality
EIP-1559 Fee Market
NEXUS implements Ethereum’s EIP-1559 fee mechanism:| Tier | Priority Fee | Expected Wait |
|---|---|---|
| Slow | 0.5× avg | ~6 blocks |
| Standard | 1× avg | ~2 blocks |
| Fast | 2× avg | ~1 block |
| Instant | 5× avg | Next block |
State Commitments
NEXUS posts state roots to L1 periodically:WASM VM Architecture
Cross-Contract Calls (XCC)
Node Architecture
- Primary: Produces blocks, commits state to L1
- Replica: Syncs from primary, serves read queries
- Archive: Full history, no pruning
Hardware Requirements
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 2 cores | 4+ cores |
| RAM | 4 GB | 8+ GB |
| Storage | 50 GB SSD | 200+ GB NVMe |
| Network | 10 Mbps | 100+ Mbps |
- t3.medium (2 vCPU): ~100-300 TPS
- t3.xlarge (4 vCPU): ~500-800 TPS
- c6i.xlarge (compute): ~1000+ TPS