Opacus fuses the proven Monero transaction model (ring-CT semantics, stealth addresses, Pedersen commitments) with Zcash-style Halo2 FCMP++ spend proofs: every spend carries a succinct zero-knowledge proof that its key material belongs to the global set of all wallet keys — and reveals nothing else.
Get started Source on GitHub ↗No trusted ceremony, no hand-waving: the circuit, the prover and the tree are all in-repo and testable at mainnet scale.
Outputs are Pedersen commitments appended to a sparse Merkle tree at mainnet depth 2³². The commutative Poseidon tree hash (t=3, x⁵ S-box) removes direction bits from witness paths.
A single-region Halo2 circuit (FcmpCircuit, 65 rows per permutation) proves in zero knowledge that the spend key is a member of the global tree — revealing only a nullifier.
Consensus verifies the IPA proof and registers the nullifier: double-spends are impossible, while amounts, recipients and history stay untraceable.
The spend proves key material belongs to the global set of all wallet keys at depth 2³² — the FCMP++ design — not a small anonymity ring.
halo2_proofs 0.3.5 (zcash lineage) with IPA commitments over the Pasta (Vesta) scalar field. No trusted setup — every constraint is auditable.
A sparse Merkle frontier with empty-subtree-root padding computes roots and auth paths in O(leaves + depth) — the naive approach would need ~137 GB of RAM.
Cross-group Schnorr DLEq proofs, a hashlock state machine (Offered → … → Claimed/Refunded) and a length-prefixed P2P protocol with tamper-evident offer ids — since v0.9 the hashlock is proven in-circuit and CLAIM/REFUND are enforced at consensus level.
Quorum-gated ERC-20 wrapper deployed to Sepolia, EIP-155 signer, Uniswap Router02 calldata builders and a JSON-RPC client — a full DEX/bridge toolchain.
opacusd runs the net and swap services and hands authenticated connections to the swap plane; opacus-cli drives the shielded wallet — build, prove, self-verify before any state mutation.
Prerequisites: a recent stable Rust toolchain (rustup) and Git.
$ git clone https://github.com/opacusio/opacus.git $ cd opacus $ cargo build --release $ cargo test --workspace # 441 tests # real (non-mock) IPA prover tests: $ cargo test -p opacus-zk --features real-prover # run a local swap node (daemon: opacusd): $ cargo run --release -p opacus-node --bin opacusd # or a full testnet node via the canonical CLI: $ cargo run --release -p opacus-cli --bin opacus -- start --network testnet
Prefer mining? opacus-miner ships a PoW engine with stats and config. Ethereum-side contracts build with Foundry: forge test --root contracts.
opacus-zkHalo2 FCMP++ circuits, Poseidon, sparse frontier, real IPA proveropacus-walletshielded wallet: build / prove / self-verify zk spendsopacus-cryptokeys, stealth addresses, Pedersen commitmentsopacus-consensusblocks & transactions, nullifier-reuse preventionopacus-bridgeMonero DLEq, atomic-swap FSM, RPC, swap P2P coreopacus-dexEthereum: RLP, ABI, EIP-155, Uniswap calldata, wOpacusopacus-networkP2P: DLEq handshake, disco gossip, encrypted notes, swap-plane handover, TCP swap nodeopacus-nodeopacusd daemon: net + swap services wired, consensus-gated tx submissionopacus-light-clientcompact block state and sync for light clientsopacus-minerPoW mining engine with config and statsopacus-clicommand-line wallet & node control