GitHub Open vault
Security

What YEkos protects against, and what it doesn't

Status: unaudited prototype. The contracts have unit tests but no external audit. Do not store amounts you can't afford to lose.
Threat modelYour key fileOne-time keysBest practiceKnown limitsReport a bug

Threat model

ThreatWhat happens
Quantum computer breaks ECDSAFunds stay safe. Only hash-based signatures can move them, and an ECDSA key has no power over the vault.
Your gas wallet is stolenFunds stay safe. That wallet only pays gas.
Your key file is stolenThe thief can queue a withdrawal, but it waits for the time-lock. You or your guardian can cancel it, and then rotate to a new key set.
Your key file is lostFunds are lost. Nobody can recover them, including us. Keep two offline copies.
Guardian wallet is stolenThe attacker can only cancel actions. Replace the guardian through the queue.
Someone copies your transactionUseless: the signature is bound to this chain, this vault, this epoch and this action id.
A one-time key is used twiceWeakens that key. The app and CLI mark a key as used before signing, and the contract rejects a key that was already used.

Your key file

The key file holds the secret that generates all 256 one-time keys. It is created in your browser and is never sent anywhere. The secret is encrypted with your password (scrypt N=217, AES-256-GCM), so a stolen file alone is not enough: the thief also needs the password, and each guess costs about a second. The site stores no secrets: only the list of used key numbers and recently opened vault addresses, in your browser's local storage.

Why keys are marked before signing

A one-time key must never sign two different messages. If a transaction fails or you reject it in your wallet, the signature may still have been created. So the key is recorded as used first, and the app never uses it again. Wasting a key is cheap: there are 255 of them, and rotation gives you a fresh set.

If you use the same key file on two devices, download the updated file after each use and load it on the other device. The vault also records used keys on-chain, and the app checks that record before every signature.

Best practice

  1. Set a guardian: a hardware wallet that you don't use for anything else. Give it a recovery code, or run the watchtower bot with it.
  2. Use a long, unique password for the key file. Keep a recovery kit separately.
  3. Keep the 24-hour time-lock (or longer) for larger amounts.
  4. Check the Actions list regularly. An action you didn't queue means your key file leaked: cancel it and rotate.
  5. Rotate when fewer than about 20 keys remain.
  6. Test with a small deposit and a small withdrawal first.

Known limits

Report a bug

If you find a vulnerability, please contact the team privately before publishing it, as described in SECURITY.md. Do not test on vaults that aren't yours.