voidcashdocs

Architecture

The contracts and off-chain parts of voidcash, who runs each one, and how a shield, a private send, an exit and a payment-link claim move through them.

voidcash is one vault contract on Elysium (chain 99901) that holds HYPE, and the ERC-20 tokens its admin lists (today only VOID), behind encrypted notes, plus a fee collector that turns HYPE exit fees into a team share and a VOID burn. The vault is also its own ERC-4337 account, so private actions reach the chain through a bundler and pay their gas in HYPE from the notes they spend. Everything that touches keys or notes runs on the user's device; the services around it relay only public or encrypted data. The one exception is the OTC desk's service, which learns the terms of the deals it signs, and never holds a key that spends a note.

On-chain components

ComponentKindWho controls itWhat it does
PrivateVault (0x5535fa0d95E4e03783C3A5d693E2f7225e6d23d4)ERC-1967 proxy (UUPS) over its implementation (0xeDcB92BE7ae97466B719C9108078D0c54CA198F0)Three roles, all held by the deployer at launch (see below)Holds the HYPE and the listed tokens behind every note, the key registry, the note tree, the nullifier set, the pending exits and each token's books. Verifies every spend. Charges the exit fee and holds large exits for 24 hours. Acts as the ERC-4337 account of private actions
Verifier, HonkVerifier (0x29688590CA80928f8f0039334D9f723180cd482a)Immutable, no ownerNobodyChecks UltraHonk proofs of the transact circuit. Generated by Barretenberg; calls two linked libraries, RelationsLib and ZKTranscriptLib
Poseidon2 hasher (0x46c60Cbe41b4A18751b85b7cDfC8d03BeC35E9e5)Immutable, no ownerNobodyPoseidon2Yul_BN254 from poseidon2-evm: Poseidon2 over BN254 in Yul, kept outside the vault for contract size. The vault calls its hash_2 and hash_3
Poseidon2Hash4 (0xdf0EDcbbBBdd91ec58a7dBbc2b7457d553Aa2bc0)Immutable, no owner, statelessNobodyThe four-input Poseidon2 hash of token note commitments, hash_4, built from the same library's permutation. Added with the v2 upgrade, because the hasher above has no hash_4
EntryPoint v0.8 (0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108)Canonical ERC-4337 contractNobodyCalls the vault's validateUserOp and execute4337, and pays bundlers out of the vault's deposit, which each operation funds itself
FeeCollectorV2 (0x260e5A151ccC5E4Ff57ffCFb3f4a56F83f823020)ERC-1967 proxy (UUPS), upgraded by the collector's adminTwo roles, both held by the vault's admin: the admin (upgrades it, sets the team's recipient) and the guardian (pauses buying)Receives the HYPE exit fees and the gas operations reserved and did not use. Token exit fees do not pass through it: they go, in the token, to the vault's token fee recipient, the team. collect(), callable by anyone, splits what arrived in half: the team's share, and HYPE that buys VOID on its Volta pool, priced from Volta's 10-minute TWAP, and sends it to 0x000000000000000000000000000000000000dEaD. It replaced FeeCollector on 2026-11-24
VOID (0xD31B21Cb80E431AC996269deC31A40fCf048B77f)A Volta launch: a minimal proxy of Volta's token implementationVolta's contractsAn ERC-20 with 18 decimals and a starting supply of 1,000,000,000. The vault's first listed token: it can be shielded and held in notes. Not needed to use voidcash. See VOID
Uniswap v4 PoolManager (0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1)Elysium's shared PoolManagerOutside voidcashHolds VOID's pool: native HYPE as currency0, VOID as currency1, LP fee 0, tick spacing 60
Volta PositionManager (0x3aB88DDc3CF2A012af88B60828edb4553697E5dC)Volta contract, the pool's hookVoltaCharges the pool's 1% swap fee on buys and sales. Volta keeps 30% of each fee; the rest goes half to the holder of VOID's creator NFT (0xac466Ee5CEdD012eB750DBDA0B935F8B997402c7, through the fee escrow 0x3D36Beb546E451584736957F97E7EE9D2aCbD9a5) and half to Volta's buyback, which waits in Volta's FeeVault (0xB074897161E8b00d97d3F4163f73de12f7B8f4Ba) and burns VOID
OtcDesk (0xd3870A9bb581fb5dD6d3286bc9D77d7f73a75381)ERC-1967 proxy (UUPS)Two roles, both held by the vault's admin: the admin (upgrades it, rotates the desk's signer) and the guardian (pauses settlement)Settles an OTC deal: two private sends that name it as their only submitter, in one transaction, both or neither, as the desk's signer signed it. Holds no funds
VoidBurner (0xc153026a5e907A249dc3B16d2A1C9e3B388207EE)ERC-1967 proxy (UUPS)Two roles, both held by the vault's admin: the admin (upgrades it) and the guardian (pauses buying)Receives the OTC desk's fees in HYPE and buys VOID with all of it, under the fee collector's rules, and burns it. No team share
DepositFactory (0x374DA27D9eC72F0812C633aEF9065207D27fA298)ERC-1967 proxy (UUPS)Three roles of its own, held by the same address as the vault'sMakes the deposit addresses the Bridge pays: CREATE2 addresses, one per note, whose HYPE it shields for exactly the note's amount, or sends back to the deposit's refund address. Holds HYPE only inside a transaction

FeeCollectorV2's constructor accepts only the exact pool Volta created for VOID: the hook must be Volta's PositionManager on that PoolManager, the oracle must be the one that PositionManager names, and VOID must be a launch recorded by Volta's creator NFT contract. The previous collector, FeeCollector, made the same pool checks through VoltaSwapper, an abstract base contract with no deployment of its own.

The vault, the first fee collector and the hasher were deployed through CreateX's CREATE3, with salts guarded by the deployer's address and the chain ID, so their addresses were fixed before deployment and nobody else could deploy at them. The vault was wired to the fee collector's planned address before VOID launched. The verifier, its two libraries, the vault implementation, Poseidon2Hash4 and FeeCollectorV2's implementation and proxy were created with plain CREATE.

Every address is listed in Deployments; the interfaces are in Contracts.

The vault's configuration and roles

The vault is an OpenZeppelin UUPSUpgradeable implementation behind an ERC1967Proxy, as are the terminal's router and the deposit factory, each with roles of its own. Its state lives in the proxy and is written once by initialize; the implementation's own initializers are disabled.

ValueWhere it lives
Verifier, hasher, four-input hasher (hasher4), EntryPointImmutables of the implementation
EIP-712 name voidcash and version 1Implementation constructor; the domain's verifyingContract is the proxy
EXIT_FEE_BPS (100), LARGE_EXIT_DELAY (24 hours), TOKEN_WINDOW (24 hours), MIN_LARGE_EXIT_THRESHOLD (1 HYPE), MAX_LARGE_EXIT_THRESHOLD (1,000,000 HYPE), MAX_AMOUNT (2^120 base units)Constants of the implementation
largeExitThreshold (1,000 HYPE at deployment), feeCollector, entriesPaused, the rolesProxy storage, written by initialize
The note tree, nullifiers, registered keys, totalBacking, pendingExitTotal, feesAccrued, pending exitsProxy storage
tokenConfig and tokenBook per token, tokenFeeRecipientProxy storage, appended by the v2 upgrade and written by the admin and by token operations

A new verifier comes with a new implementation. An upgrade keeps everything in the proxy's storage, and the EIP-712 domain still names the proxy, so registered keys stay valid and existing notes stay spendable. That is how tokens arrived: on 5 November 2026 the vault was upgraded in place to its v2 implementation, with a new verifier for the three-input, four-output circuit, the same address and the same note tree. The VOID listing followed in the same script.

RoleCan
UPGRADER_ROLEReplace the implementation (upgradeToAndCall), with no timelock
GUARDIAN_ROLEpause and unpause: stop every spend of a note and every payout (transact, validateUserOp, execute4337, releaseExit); shielding and key registration keep working. setEntriesPaused: stop or resume shield and shieldToken for every token at once. setTokenEntriesPaused: stop or resume one token's shields. stopExit and resumeExit: stop an exit of any asset not yet paid, or let it be paid again from its original time
DEFAULT_ADMIN_ROLEGrant and revoke every role, set largeExitThreshold between 1 and 1,000,000 HYPE, set the fee collector, list a token (listToken), set a listed token's limits (setTokenLimits), set the token fee recipient (setTokenFeeRecipient)

The guardian cannot spend, move or reveal a note, and a stopped exit's amount stays reserved for it. The upgrader's role reaches every rule of the vault, since it replaces the code that runs against the vault's storage. See The vault and the trust model.

Off-chain components

ComponentWho runs itWhat it sees and does
App (https://voidcash.io, wallet at /app)Served by the team; runs in the user's browserDerives the keys from a wallet signature and keeps them in memory, scans and decrypts notes, builds and proves every private transaction in the browser, asks the wallet to sign each spend. Its content security policy lets the page reach only its own origin, the chain RPC, the bundlers, the indexer, the deposit service, the OTC desk service, Relay's API and WalletConnect
SDK (packages/sdk)Part of the app and the MCP serverPrivacyClient: activation, scanning, shielding, sends, exits, payment links, private addresses and receipts. Proves with @noir-lang/noir_js and @aztec/bb.js
BundlersPimlico's (https://api.pimlico.io/v2/99901/rpc), used first by the app; voidcash's own (https://bundler.voidcash.io) as the fallback; anyone can run anotherAny ERC-4337 bundler that serves EntryPoint v0.8 on Elysium submits the vault's operations. voidcash's own is Alto 0.0.21, Pimlico's open-source ERC-4337 bundler, behind a gate that forwards only the methods the SDK uses, and only UserOperations whose sender is the vault, with no factory, no paymaster and no EIP-7702 authorization. It sees the network address behind each operation. It cannot change the recipient, the amounts or the gas fee, which the proof binds
Indexer (https://indexer.voidcash.io)The team; optional, anyone can run itStores the vault's events from eth_getLogs and a log subscription, and serves them by block range, the same to everyone. Wallets check what it serves against an on-chain root and fall back to the chain. See The note tree. It also keeps the standings of VOID's airdrop
Deposit service (https://deposits.voidcash.io)The team; anyone can complete a deposit insteadKeeps the fields of each deposit made on the Bridge, watches the deposit addresses' balances, and calls the factory's complete once a deposit is paid, or refund after its deadline. Sees the deposit address, the amount, the refund address and the network address of the request. See Deposit addresses
Relay (https://api.relay.link)Relay, outside voidcashCarries a payment from another chain to a deposit address on Elysium. The app calls its public API, without its SDK
KeeperThe teamCalls only permissionless functions: vault.sweepFees(), vault.sweepTokenFees(token) for each listed token, and collector.collect(). Alerts on exits above a share of the pool (for a token, of the token's backing), on held exits, on exits the guardian stops or resumes, and on the admin's and guardian's token changes
OTC desk service (https://otc.voidcash.io)The teamRuns the OTC desk's board, offers, auctions, requests and fees; checks each pair of halves on chain, signs the deal and submits it from its relayer. Holds the desk's signer and relayer keys, and no key that spends a note. Sees the wallets that sign in and each deal's terms. Screens wallets against OFAC's SDN list
OTC fee keeperThe teamHolds the key of the desk's private address: refunds fees, repays the relayer's gas and sends burnable fees to VoidBurner, after checking each record on chain, within daily and per-round caps
MCP server (@voidcash/mcp on npm)Whoever installs it, on their own machineGives an AI agent its own private HYPE account through the SDK, signing with the agent's key locally. See MCP server
RPCKinetiq's public endpoint https://rpc.elysium.kinetiq.xyz by defaultServes reads and the wallet's public transactions

Flow 1: shield

The app creates a note for the user: random rho and r (64 random bytes, reduced mod p), the amount in wei, and stub = H(opk, rho, r). It encrypts (rho, r, amount) to the user's viewing key.

The user's wallet calls PrivateVault.shield{value: amount}(stub, ciphertext) and pays the gas itself.

The vault checks that entries are not paused, that stub < p, and that 0 < msg.value < 2^120. It adds the value to totalBacking, completes the commitment cm = H(1, stub, msg.value), inserts the pair (cm, 0) into the tree, and emits Shielded(from, index, amount), NoteAdded(index, cm, ciphertext) and VaultUpdated. No fee.

The user's app finds the note on its next scan by decrypting the ciphertext and checking it against cm.

The sender's address and the amount are public. Which later spend uses the note is not. A shield can also create a note for someone's private address: the payer needs no keys of their own.

A token is shielded the same way, in two wallet transactions: approve(vault, amount) on the token, then shieldToken(token, amount, stub, ciphertext), which pulls the tokens, checks that the vault's balance grew by exactly amount, and inserts (H(3, stub, amount, uint160(token)), 0). The app sends both from one click, and skips the approval when the allowance already covers the amount. See Notes.

Flow 2: private send

The flow below is a send of HYPE; a send of a token differs only where noted after it.

The app scans the tree and picks, in one tree (one proof has one root), the smallest HYPE note that covers the gas fee for the fee pair and the two largest of the others for the main pair, when those hold the amount. Otherwise it picks the two largest HYPE notes and the fee pair stays empty: a dummy in, a zero-value note out. A missing input becomes a zero-value dummy.

It reads keysOf(recipient) and creates the recipient's note with fresh rho and r, and a change note for the sender. The change note always exists, even at zero, and its encrypted memo records whom the spend paid.

It asks the bundler for a gas price (pimlico_getUserOperationGasPrice), builds the operation with a random placeholder proof of the real proof's size and zero prices, and has the bundler estimate it. The gas fee is the operation's maximum cost: (verificationGasLimit + callGasLimit + preVerificationGas) × maxFeePerGas.

With a spare HYPE note, the transaction has exitAmount = 0, exitAsset = 0 and feeAmount = gasFee, the gas paid from that note as in a token send; without one, exitAmount = gasFee and feeAmount = 0. Its ExtData names no recipient, the vault as caller, the gas fee, and data = abi.encode(callGasLimit). The wallet signs EIP-712 Spend(bytes32 transaction) once, and the app proves once, in the browser.

The UserOperation has the vault as sender, nonce uint192(nf0) << 64, call data execute4337(nf0), no init code or paymaster, and signature = abi.encode(Transaction, proof). The bundler submits it to the EntryPoint.

In validateUserOp the vault checks the operation's shape and that gasFee covers its maximum cost, verifies the proof, marks the three nullifiers spent, inserts the four output commitments as two pairs, subtracts the HYPE leaving from totalBacking, emits ExitCreated with only a gas fee, and deposits the gas fee into its own EntryPoint deposit, from which the EntryPoint takes its prefund.

execute4337(nf0) finds nothing to pay and returns. On-chain the transaction shows three nullifiers, four commitments and a gas fee; it does not show the sender, the recipient or the amount.

Gas the operation reserved and did not use stays in the vault's EntryPoint deposit until sweepFees sends it to the fee collector. Details in Gas and ERC-4337.

A token send spends the two largest notes of the token in the main pair, and pays its gas from the fee pair: the smallest HYPE note of the same tree that covers the gas fee, whose change goes back to the sender. The transaction has exitAmount = 0, exitAsset = 0 and feeAmount = gasFee. So a user needs some shielded HYPE to move a token privately; without a HYPE note large enough, the app refuses before anything is signed. The token amount and the token itself stay private, but the gas carried in feeAmount rather than exitAmount shows that the send moved a token, not HYPE (see The circuit). Token sends go to an address with registered keys; payment links and private addresses take HYPE only.

Flow 3: exit (unshield)

As a send, but with no recipient note: exitAmount = gasFee + exit and ext.recipient is the public address. The second output is an empty note with a random ciphertext of the usual length.

In validation the vault takes the exit fee, fee = (exitAmount - gasFee) × 100 / 10,000, and adds it to feesAccrued. The rest, net, is recorded as an exit under the first nullifier, exits[nf0], and added to pendingExitTotal. If net > largeExitThreshold, the exit is held: payableAt = now + 24 hours.

In execution, execute4337(nf0) pays net to the recipient unless the exit is held or stopped. If the recipient refuses the HYPE, the exit stays recorded instead of reverting.

A held exit, or one its execution step could not pay, is paid by releaseExit(exitId), which anyone may call once payableAt has passed. Until it is paid, the guardian can stop it with stopExit.

The recipient and the amount are public; which notes paid for them is not.

A token exit has exitAsset = token, exitAmount = exit out of the main pair, and feeAmount = gasFee out of a HYPE fee note. The exit fee, 1%, stays in the vault in the token, in the token's feesAccrued, for the team. The net waits 24 hours when it is above the token's threshold, or when it would take the token's exits paid in the current 24-hour window above the window's cap. In execution a token transfer that fails leaves the exit recorded for releaseExit, as a refused HYPE payout does. See The vault.

To make a link, the sender's wallet signs a second fixed message, once per session, which gives a link seed. The seed and a fresh random nonce give the link's key, a secp256k1 private key. The app derives privacy keys from that key exactly as a wallet would (see Keys).

The sender makes a private send to the link's keys. The change note's memo records only the nonce, the link's address and the amount. The link is https://voidcash.io/claim#<key>: the key sits in the URL fragment, which browsers do not send to the server.

The claimer's app derives the link's keys from the fragment and scans for its notes. The link key itself signs the claim's Spend locally, so the claimer's wallet never signs for it.

A private claim spends the link's notes into a note for the claimer's own keys (the amount less the gas fee), and the zero change note goes to the claimer too: nothing is left that the link key can read. A claim to an address is an exit of everything the link holds, and pays the exit fee.

The sender can open the link again from their history and claim it back until someone else does. See Payment links.

Fees after an exit

sweepFees(), callable by anyone, withdraws the vault's whole EntryPoint deposit (gas operations reserved and did not use) and sends it, with feesAccrued, to the fee collector.

collect(), callable by anyone, splits what arrived: half to teamOwed, paid to the team's recipient, half to toBurn. It makes at most one buy every 12 seconds, sized to move VOID's price by no more than 0.5%, and sends the VOID it bought to the dead address. Its caller is paid back its gas, capped, only when it bought.

The keeper calls both. The limits are in VOID.

Token exit fees take a shorter path: sweepTokenFees(token), callable by anyone, sends a token's accrued fees, in the token, to the vault's tokenFeeRecipient, the team. They never reach the fee collector and buy no VOID; the keeper calls it for each listed token.

Paths that need no bundler

Any account can submit a private transaction directly with PrivateVault.transact(t, proof), paying the gas from its own balance. ext.caller must then be zero or that account, and ext.gasFee must be zero (GasFeeNotAllowed): the notes never pay a direct submitter. The exit is paid in the same transaction unless it is held. The submitting account is visible on-chain, so this gives up the submitter's privacy in exchange for independence from any bundler. The SDK's directSubmitter calls EntryPoint.handleOps from a wallet instead, with the same visibility.

On this page