Security modelAll pages

Docs · Trust

Security model

What EnQuantum protects, what it does not, and the things you rely on when you use it. Read this before committing a key.

What you are trusting

PartyPowerLimit
The contractsHold commitments, bounties and account stateImmutable. No owner, admin, pause or upgrade.
The guardianCan trip the alarm early, onceCannot untrip, move funds or change anything else.
KeepersFlip accounts after a tripPermissionless. Anyone can run one, and owners can flip their own account.
The siteGenerates your seed in the browserThe seed is never sent anywhere. The signer is open source and can be run offline.
YouHold the seedNobody else has it, so nobody can recover it.

The attacker

The system is built around one adversary: someone with a quantum computer able to derive an elliptic curve private key from its public key.

  • They can take any wallet whose public key is onchain and which has no other protection.
  • They can claim the alarm's bounties, which is the point. Doing so pays them and warns everyone.
  • They cannot produce a one-time signature without the seed, because that needs a hash preimage.
  • They cannot backdate a Registry entry or write one after the alarm has tripped.

An attacker who chooses to stay quiet and never touches the bounties is the case the guardian is for.

The trip-to-flip window

Between the alarm tripping and an account flipping, the account still accepts its owner's ECDSA signature. An attacker who already holds that key could use it in this gap. The validator cannot close the gap itself, because bundler rules stop validation from reading another contract's state.

The mitigations are speed and choice. Keepers flip in batches as soon as the flag is set, and any owner can flip early, at any time, by accepting higher gas costs from then on.

Known limits

  • Plain wallets cannot switch keys. A commitment from a plain wallet is a dated record of ownership. It does not stop the wallet's key from being used. Switching needs a smart account with the Vault validator.
  • Lose the seed and the account is gone after a flip. There is no recovery path by design.
  • A one-time key that signs twice is broken. Use the key index from the chain, every time.
  • Uninstalling the module removes the protection. So does any other validator on the account that still accepts ECDSA.
  • Signed messages stop working after a flip. ERC-1271 returns invalid, so apps that rely on offchain signatures will not accept the account.
  • The alarm measures a proxy. It reports that a 192-bit or 224-bit curve fell, not that 256-bit keys have. That is deliberate: the warning has to come first.

Assumptions

  • keccak256 stays preimage and second-preimage resistant against quantum attackers. The best known quantum speed-up leaves roughly 128 bits of strength.
  • The chain keeps including transactions, so flips can land.
  • Your browser's random number generator is sound when the seed is created.

Review status

Not audited yet.

The contracts have a Foundry suite of 94 tests, shared test vectors between Solidity and TypeScript, and a fork run on Robinhood Chain. No external audit has been done, and the module has not yet been run through a live bundler. Treat v1 as unreviewed software until both are complete.

More detail on each contract: Registry, Alarm, Vault validator.