Post-quantum modular smart accounts on Ethereum & L2s, explained from first principles.
Preview-only & pre-audit notice: ZK-ACE v2 is open-source, fork-tested pre-audit software. Mainnet v2 contracts are not yet deployed on Ethereum, Arbitrum One, Base, or OP Mainnet — all four networks are currently Preview Only (deposits disabled) in the vault app, which verifies exact runtime bytecode via read-only RPC and fails closed whenever contracts are missing or mismatched. Do not send real funds.
Every standard Ethereum EOA and ECDSA smart wallet depends on the Elliptic Curve Discrete Logarithm Problem (ECDLP) over secp256k1. On a fault-tolerant quantum computer, Shor's algorithm reduces ECDLP to period-finding via the Quantum Fourier Transform and recovers the private key in polynomial time once the public key appears on-chain (which happens on your very first outgoing transaction).
By contrast, cryptographic hash functions like Keccak-256 and Poseidon2 have no algebraic group structure for Shor's algorithm to exploit. The best known quantum attack — Grover's algorithm — yields only a quadratic speedup, turning a 256-bit preimage space into 128-bit post-quantum security. Hash-based cryptography sits at the very top of the post-quantum confidence hierarchy.
Without waiting for a future Ethereum hard fork (~2029 PQ precompiles), ERC-4337 account abstraction lets smart accounts verify post-quantum authorizations in pure EVM bytecode today. Comparing the real 2026 options:
| Approach | Hardness | Verify Gas | Payload Size | Notes |
|---|---|---|---|---|
| SPHINCS⁻ C7 (ZK-ACE v2 · ERC-7913) | Hash-only (Keccak-256) | ~96k–104k | 3,704 B | Stateless, pure EVM KECCAK256, 257.6k full handleOps |
| SPHINCS⁻ C13 (Verity / Lean 4) | Hash-only (Keccak-256) | ~105k–127k | 3,688–3,704 B | Formally verified in Lean 4 by VerityLabs |
| Fireblocks ML-DSA-44 (FIPS 204) | Module-LWE lattice | 1,230,000 | 2,420 B | Pure Solidity SOTA (~45k only with future EIP-8051) |
| ZKnox ETHFALCON / EPERVIER | NTRU lattice | ~1.8M / ~1.9M | 666 B / 2,202 B | Smallest lattice sig (future EIP-8052 precompile) |
| True-ZK STARK v2 (ZK-ACE Optional) | Hash-only (Poseidon2 + Keccak) | 3,924,318 | ~24.5–25.4 KB | 128-row CSPRNG-blinded trace, 256-bit secret |
| PSE WHIR (KoalaBear ext4) | Hash-only PCS (100b / 80b) | 5,646,080 / 975,202 | ~10–35 KB | 100-bit provable Johnson bound vs 80-bit test config |
SPHINCS⁻ C7 wins on BOTH security conservatism (hash-only, zero lattices) AND gas efficiency (12.8× cheaper than Solidity ML-DSA-44 and 108.6× cheaper than ZK-ACE v1).
ZK-ACE v2 implements the Ethereum Foundation PQ team's SPHINCS⁻ C7 parameter set in Rust/WASM (crates/zk-ace-sphincs, 141 KB WASM bundle) and pure-Yul Solidity (contracts/src/SphincsC7Validator.sol):
n = 16 (128-bit PQ), hypertree height h = 24, layers d = 2 (12-level subtrees), FORS+C a = 16, k = 8 (forced-zero last tree optimization), WOTS+C w = 8, l = 43, swn = 151, domain-separated FIPS 205 §4.2 ADRS via Keccak-256.idCom = bytes32(pk_seed[0..16] || pk_root[0..16]) (fits in 1 storage slot and directly implements finalized Ethereum ERC-7913 IERC7913SignatureVerifier, returning 0x024ad318 on valid signatures).keccak256("ZK-ACE:SPHINCS-C7:v2", chainId, zkNonce, userOpHash)keccak256("ZK-ACE:EIP1271:SPHINCS-C7:v2", chainId, account, digest)ZeroizeOnDrop of all secret key material.handleOps.To eliminate every flaw found in the v1 STARK prototype while demonstrating a genuinely zero-knowledge hash-based prover on EVM, we rewrote crates/zk-ace-stark and contracts/src/StarkVerifierV2.sol from scratch:
TRACE_LENGTH = 128 (32 active Poseidon2 rows + 96 CSPRNG random blinding rows), TRACE_WIDTH = 8 (zero dummy columns). With 36 queries against a degree-127 polynomial, Lagrange interpolation cannot recover the secret — enforced by an explicit attack regression test in Rust.REV[0..4] derived from PBKDF2-SHA512 (128-bit PQ preimage security).val < P before every Keccak hash and arithmetic operation (eliminating the v1 CRT forgery), explicit friCom1 == keccak256(rem_le) verification, exact proof.length check, radix-4 closed-form inverse DFT FRI folding, Montgomery batch inversion, and deduplicated level-by-level batch Merkle openings.ZkAceAccountV2 implements ERC-4337 v0.7 BaseAccount, IERC1271, ERC721Holder, and ERC1155Holder:
interface IPqValidator {
function verify(bytes32 idCom, uint256 chainId, uint256 zkNonce, bytes32 userOpHash, bytes calldata sig) external view returns (bool);
function verifyEip1271(bytes32 idCom, uint256 chainId, address account, bytes32 hash, bytes calldata sig) external view returns (bool);
function isValidCommitment(bytes32 idCom) external pure returns (bool);
function schemeName() external pure returns (string memory);
}
_validateSignature wraps validator.verify(...) in try/catch and returns SIG_VALIDATION_FAILED (1) on any invalid/dummy signature so bundlers estimate gas cleanly.proposeIdentityRotation / confirmIdentityRotation / cancelIdentityRotation) and validator replacement (proposeValidatorUpgrade / confirmValidatorUpgrade / cancelValidatorUpgrade) require a 48-hour waiting period, and cancellations remain executable even while the vault is paused.0x4e59b44847b379578588920ca78fbf26c0b4956c places SphincsC7Validator (ERC-7913) at 0xb70eA5562a6f057e695375abA350147fDeE73597, StarkVerifierV2 at 0x7cf650a1B6D08cF9865AE4Cf25D0e01F35aD8fC9, and ZkAceAccountFactoryV2 at 0xE5cfd3E4e42Cc54550325ede0f9D32Cae1341736 on every EVM chain.