secp256k1 ECDSA falls to Shor's algorithm. zkFUND pairs every ECDSA signature with a zkFUND-512 lattice signature. A transaction is valid only if both verify.
| classical | ECDSA · secp256k1 |
| post-quantum | zkFUND-512 · NTRU lattice |
| ring | Zq[x]/(x512+1), q = 12289 |
| security | NIST level I |
| policy | valid ⇔ ECDSA ∧ zkFUND |
A key is only as safe as the weakest layer that touches it. The hybrid policy is enforced at each one.
Clear signing: the device decodes and displays what the transaction executes before either key signs.
zkFUND-512 signing in constrained memory, streamed through authenticated buffers.
The account contract checks both signatures. Breaking one scheme is not enough to move funds.
Sizes in bytes. Quantum resistance assumes a cryptographically relevant quantum computer.
| Scheme | Public key | Signature | Hard problem | Quantum-safe |
|---|---|---|---|---|
| ECDSA secp256k1 | 33 | 65 | Discrete log | no |
| zkFUND-512 | 897 | 666 | NTRU-SIS | yes |
| zkFUND-1024 | 1793 | 1280 | NTRU-SIS | yes |
| Hybrid (zkFUND) | 930 | 731 | both | yes |
Sign a message under the hybrid policy, then replay it against an adversary that has broken ECDSA.
Simulation. Hashes are computed locally; no keys are generated and nothing leaves the browser.
Uniswap v4 hook, no owner. The zkFUND verifier is a commitment stub in v0.1.
interface IZkFundHybridHook { function registerKey(bytes32 pkHash) external; function attest(bytes32 msgHash, bytes32 zkfundSig) external; function zkfundKey(address account) external view returns (bytes32); function attestations(address account) external view returns (uint256); function totalAttestations() external view returns (uint256); // afterSwap: counts swaps of the attached pool (PoolManager only) }