ZK-ACE v2 is a modular ERC-4337 v0.7 smart account with zero elliptic curves.
By default it verifies stateless hash-based SPHINCS⁻ C7 signatures (also
implementing finalized Ethereum ERC-7913) in
~96k–104k gas (257,597 gas measured on local Arbitrum fork EntryPoint v0.7 handleOps, 3.7 KB) —
100×+ cheaper than v1 — with 48-hour timelocked upgrades
to True-ZK STARK v2 or future EIP-7932 / EIP-8051 / EIP-8052 / EIP-8141 PQ upgrades.
All mainnet networks are currently preview-only; do not send real funds.
Every standard EOA and ECDSA smart account exposes its public key on-chain on its first outgoing transaction. A cryptographically relevant quantum computer recovers the private key in polynomial time.
Solidity lattice verifiers (ML-DSA-44 at ~1.23M gas, ETHFALCON at ~1.4–1.8M gas) and STARK verifiers (~3.9M–10.5M gas) are expensive per transaction. Worse, immutable account verifiers force users to migrate funds whenever better cryptography or native EIP precompiles ship.
Our internal review of ZK-ACE v1 exposed a non-blinded trace leaking private keys after a single transaction, a uint64 CRT proof forgery, an unverified FRI root, 64-bit PQ secret entropy, and reverting validation that broke ERC-4337 bundlers.
Built on the Ethereum Foundation PQ team's WOTS+C / FORS+C parameter set (h=24, d=2, a=16, k=8, w=8). Stateless 128-bit post-quantum security resting solely on Keccak-256 — no lattices, no curves, no trusted setup, 256,284 gas end-to-end through EntryPoint v0.7.
IPqValidatorZkAceAccountV2 delegates signature verification to a swappable IPqValidator behind a 48-hour timelock. Switch seamlessly between SPHINCS⁻ C7, our repaired 128-row CSPRNG-blinded True-ZK STARK v2, or future Ethereum PQ precompiles — same address, zero fund migration.
Deployed via the universal CREATE2 proxy, every vault gets the exact same address across Ethereum, Arbitrum, Base, and Optimism while binding block.chainid + EntryPoint.getUserOpHash on-chain. Validation never reverts, so ERC-4337 v0.7 bundlers estimate gas cleanly.
Honest apples-to-apples comparison of post-quantum authorization schemes verifiable on today's EVM without hard forks or custom precompiles.
| Scheme | Hardness Assumption | Verify Gas | Full handleOps | Payload Size | Status |
|---|---|---|---|---|---|
| ZK-ACE v2 · SPHINCS⁻ C7 (ERC-7913) | Hash-only (Keccak-256 · 128-bit PQ) | ~96k–104k | 257,597 (fork) | 3,704 B | Preview · Fork-Tested |
| SPHINCS⁻ C13 (Verity / Lean 4 verified) | Hash-only (Keccak-256 · 128-bit PQ) | ~105k–127k | ~265k–290k | 3,688–3,704 B | EF PQ Reference |
| Fireblocks ML-DSA-44 (FIPS 204, Solidity) | Lattice (Module-LWE) | 1,230,000 | ~1.40M+ | 2,420 B | Lattice SOTA (No Precompile) |
| ZKnox ETHFALCON / EPERVIER (Solidity) | Lattice (NTRU) | ~1.8M / ~1.9M | ~2.0M+ | 666 B / 2,202 B | Lattice Alt (EIP-8052 Future) |
| ZK-ACE v2 · True-ZK STARK | Hash-only (128-row Blinded Poseidon2 + Keccak) | 3,924,318 | ~4.35M steady / 5.57M deploy | ~24.5–25.4 KB | Optional Module |
| PSE WHIR (KoalaBear ext4, Solidity) | Hash-only PCS (100-bit Johnson / 80-bit) | 5,646,080 / 975,202 | ~5.8M / ~1.15M | ~10–35 KB | Research PCS |
| Legacy ECDSA (secp256k1) | Elliptic Curve DLP (Broken by Shor) | ~3,000 | ~95,000 | 65 B | Quantum Vulnerable |
| ZK-ACE v1 (DEPRECATED) | Broken non-ZK 32-row STARK + CRT bug | 10,460,000 | 11.45M–12.50M | 85,248 B | Unsafe · Retired |
All key derivation, signing, and proving execute inside an isolated browser Web Worker and are zeroized on lock.
Your 24-word BIP-39 phrase runs through PBKDF2-SHA512 (600k iterations) inside a Web Worker to derive a 512-bit SPHINCS⁻ C7 seed (and 256-bit STARK v2 secret) and a 32-byte commitment fitting in 1 storage slot.
idCom = bytes32(pk_seed[0..16] || pk_root[0..16])
Once v2 contracts are deployed and bytecode-verified on a chain, the universal CREATE2 factory yields the same counterfactual address across Ethereum, Arbitrum, Base, and Optimism. On preview-only networks, deposit addresses and QR codes stay disabled.
factoryV2.getDefaultAddress(idCom, 0)
For each ERC-4337 v0.7 UserOp (or EIP-1271 signature), the worker binds block.chainid, internal zkNonce, and userOpHash using SPHINCS⁻ C7 (1.8s WASM) or True-ZK STARK v2 (1.7s WASM).
digest = keccak256("ZK-ACE:v2:UserOp", chainId, zkNonce, userOpHash)
ZkAceAccountV2 verifies via its active IPqValidator (96.3k gas), increments zkNonce, and executes. Rotate keys or swap validators via 48-hour timelocks anytime.
validator.verify(idCom, chainId, zkNonce, userOpHash, sig)
Measured across 34 Rust/WASM tests, 80 Foundry smart-contract tests, 4 SDK tests, and real EntryPoint v0.7 Arbitrum One fork transactions.
Pure Keccak-256 WOTS+C / FORS+C (h=24, d=2, a=16, k=8, w=8, l=43). 141 KB WASM bundle, O(A) streaming TreeHash, cached top subtree, ZeroizeOnDrop.
128-row trace (32 Poseidon2 + 96 CSPRNG blinding rows), full 256-bit secret, 36 queries, 20-bit PoW, radix-4 FRI folding, deduplicated Merkle batches (~24.5 KB, 3.92M gas).
ZkAceAccountV2 implements BaseAccount, IERC1271, ERC721Holder, ERC1155Holder, non-reverting try/catch validation, and idempotent CREATE2 deployment.
2-step identity rotation (propose → wait 48h → confirm, or cancel even while paused), 2-step IPqValidator upgrade, and PQ-authorized Emergency Pause.
All PBKDF2, WASM keygen, signing, and STARK proving run off the UI thread. Secrets never touch localStorage or network calls and are zeroized on lock/unload.
All internal audit findings are fixed and regression-tested (118+ automated tests), but ZK-ACE v2 has not yet undergone an independent third-party audit.
Before shipping v2, we performed an adversarial review of the original ZK-ACE v1 codebase and reproduced every vulnerability with live exploits. Every single issue below is fixed and regression-tested in v2.
Winterfell 0.13 does not automatically blind traces. v1 used TRACE_LENGTH=32 (degree ≤ 31) with 44 queries, revealing ~43 plaintext trace evaluations — we extracted REV and salt from v1's fixture in <10ms via Lagrange interpolation. v2 fix: Default SPHINCS⁻ C7 uses stateless one-way hashes; STARK v2 adds 96 CSPRNG blinding rows (128-row trace) with an explicit Lagrange extraction test proving failure.
_writeLE64 CRT universal proof forgeryv1's StarkVerifier.sol truncated uint256 proof words to uint64 (mod 264) when hashing Merkle leaves, while arithmetic reduced mod P = 264-232+1. Because gcd(264, P) = 1, an attacker could forge valid proofs in 0.2s passing an all-zero Merkle tree. v2 fix: Strict canonical 8-byte BE unpacking enforcing val < P before every hash and arithmetic op.
friRoot & 64-bit PQ secretv1 reseeded friRoot into Fiat-Shamir without verifying it against the 32 remainder coefficients, and truncated user secrets to 64+64 bits (only 64-bit PQ Grover security). v2 fix: StarkVerifierV2 enforces friCom1 == keccak256(rem_le), exact proof.length, and full 256-bit secrets (128-bit PQ).
v1 reverted inside _validateSignature (causing Pimlico AA23 failures), reverted on duplicate factory createAccount (front-runnable AA13 DoS), and locked verifier as immutable. v2 fix: Non-reverting try/catch returning SIG_VALIDATION_FAILED (1), idempotent CREATE2 factory, and 48h timelocked IPqValidator upgrades.
v1 froze the browser main thread, displayed ERC-20s that couldn't be sent, rendered plaintext address inside a fake QR box, used window.prompt() for seed rotation, and hardcoded 15M gas. v2 fix: Web Worker isolation, real SVG QR codes, multi-chain ETH + ERC-20 send, live eth_estimateUserOperationGas, pre-sign balance checks, and inline rotation/upgrade modals with Cancel controls.
Removed inaccurate claims (“500M+ gas ML-DSA”, “SPHINCS+ is stateful”, contradicting multi-chain address statements). All gas figures, signature/proof byte sizes, and pre-audit disclaimers now reflect direct measurements.
ZK-ACE v2 uses Nick's universal CREATE2 deployer (0x4e59b44847b379578588920ca78fbf26c0b4956c) for identical addresses across chains. Read-only RPC checks confirm EntryPoint v0.7 and the CREATE2 deployer are live on all four networks, while the v2 factory and validators are not yet deployed on mainnet. The vault app fails closed and hides deposit addresses, QR codes, Receive, and Send on every preview-only network.
| Network | Chain ID | EntryPoint v0.7 & CREATE2 | v2 Factory & Validators | Vault App Mode |
|---|---|---|---|---|
| Arbitrum One | 42161 | Bytecode Verified | Not Deployed Yet | Preview Only · Deposits Disabled |
| Base | 8453 | Bytecode Verified | Not Deployed Yet | Preview Only · Deposits Disabled |
| OP Mainnet | 10 | Bytecode Verified | Not Deployed Yet | Preview Only · Deposits Disabled |
| Ethereum | 1 | Bytecode Verified | Not Deployed Yet | Preview Only · Deposits Disabled |
| Contract (v2 Planned CREATE2) | Target Deterministic Address | Expected Runtime Codehash | Mainnet Status |
|---|---|---|---|
| SphincsC7Validator (ERC-7913) | 0xb70eA5562a6f057e695375abA350147fDeE73597 | 0x2211266a...3af15f3 | Pending Mainnet Deploy (Fork-Tested) |
| StarkVerifierV2 | 0x7cf650a1B6D08cF9865AE4Cf25D0e01F35aD8fC9 | 0xdee384bb...c5dbf8d | Pending Mainnet Deploy (Fork-Tested) |
| ZkAceAccountFactoryV2 | 0xE5cfd3E4e42Cc54550325ede0f9D32Cae1341736 | 0x0bb2e528...37ad9e5 | Pending Mainnet Deploy (Fork-Tested) |
| EntryPoint v0.7 | 0x0000000071727De22E5E9d8BAf0edAc6f37da032 | 0x8db5ff69...582fc58 | Live & Verified on All 4 Chains |
0x7b57...2809, Base 0x4EfA...DaB1, Optimism 0x85C9...57A8) are DEPRECATED AND UNSAFE due to the non-ZK trace leak and CRT verifier bug documented above. ZK-ACE v2 remains pre-audit software.
Inspect the Rust/WASM SPHINCS⁻ C7 signer & True-ZK STARK v2 prover, read our v1→v2 security postmortem, or test local Web Worker key derivation in the preview-only vault app (deposits disabled until mainnet deployment).