What is NEXUS?
NEXUS is a unified smart contract execution layer for proof-of-work blockchains. It adds programmability to Zcash first, with Bitcoin and Dogecoin joining the same execution layer as it expands. NEXUS is a metaprotocol — it has no separate chain. It reads Zcash (and later Bitcoin/Dogecoin) transactions, processes them according to NEXUS rules, runs WASM smart contracts, and writes a state summary back to those same chains. The underlying L1 never changes; NEXUS just gives it superpowers.V1 vs V2 — What’s Available Now
Core Components
Execution Layer
WASM Virtual Machine (Smart Contract Engine)
NEXUS runs smart contracts written in Rust, compiled to WebAssembly (WASM) — a compact, portable binary format. The VM:- Runs the same contract code identically on every node
- Charges gas for each operation (prevents runaway code)
- Provides contracts access to storage, events, L1 chain data, and cross-contract calls
- Today runs on Zcash; the same VM will execute contracts anchored to Bitcoin and Dogecoin when those chains join
State Processor
The state processor maintains the global record of all contract state and balances. It:- Processes transactions in order
- Computes a state root — a single hash summarizing all state
- Posts that root to Zcash L1 so anyone can verify NEXUS is behaving correctly
- When Bitcoin/Dogecoin join, state roots are committed to all live chains simultaneously
Encrypted Mempool
Transactions are encrypted before submission using ECDH + ChaCha20-Poly1305. Their contents are hidden from miners until a block is produced. This prevents MEV (front-running and sandwich attacks). Protocol version 2. Domain:nexus-encrypted-mempool-chacha20poly1305-v2.
See Encrypted Mempool for details.
Fee Market (EIP-1559 Style)
NEXUS uses a dynamic fee system:- A base fee adjusts automatically — rises when blocks are full, falls when empty
- Maximum change per block: ±12.5% (smooth, predictable)
- Target utilization: 40% of block gas
- On Zcash: fees are denominated in zatoshi. Base fee: 244,000,000 zatoshi/gas unit
- Add a priority tip for faster inclusion
Bridge Layer
Each chain has a dedicated bridge that monitors deposits, processes withdrawals, and posts state commitments to L1.Zcash Bridge ✅ Live
- Vault type: Transparent address (t-addr), P2SH 2-of-2 multisig (you + protocol)
- Verification: Groth16 ZK proofs — verified natively by Zcash nodes. No external verifier needed.
- State commits: Posted as Sapling shielded notes — not OP_RETURN. Each epoch writes a shielded note with a 512-byte encrypted memo containing the full state metadata. Epochs are linked via nullifiers, forming a cryptographically verifiable chain from genesis.
- Deposit confirmations: 10 blocks (~12.5 min at 75s/block)
- Escape timelock: 16,128 blocks (~2 weeks)
Why Sapling notes instead of OP_RETURN? Sapling memos hold 512 bytes (vs 80 bytes for OP_RETURN), nullifiers prevent state replay, and Zcash natively verifies the cryptography. Anyone with the public Full Viewing Key can independently verify all NEXUS state history on Zcash.
Bitcoin Bridge 🔄 Coming soon
- Vault type: Taproot (P2TR) with escape hatch
- Verification: ZK-STARK proofs + BitVM2 bisection fraud proofs
- State commits: OP_RETURN outputs (32-byte state root)
- Deposit confirmations: 6 blocks (~60 min)
- Escape timelock: 2,016 blocks (~2 weeks)
Dogecoin Bridge 🔄 Coming soon
- Vault type: P2PKH with CLTV escape hatch
- Verification: ZK-STARK proofs + fraud proofs
- State commits: OP_RETURN outputs
- Deposit confirmations: 3 blocks (~3 min — Dogecoin’s 1-minute blocks are the fastest)
- Escape timelock: 20,160 blocks (~2 weeks)