What YEkos protects against, and what it doesn't
Threat model
| Threat | What happens |
|---|---|
| Quantum computer breaks ECDSA | Funds stay safe. Only hash-based signatures can move them, and an ECDSA key has no power over the vault. |
| Your gas wallet is stolen | Funds stay safe. That wallet only pays gas. |
| Your key file is stolen | The 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 lost | Funds are lost. Nobody can recover them, including us. Keep two offline copies. |
| Guardian wallet is stolen | The attacker can only cancel actions. Replace the guardian through the queue. |
| Someone copies your transaction | Useless: the signature is bound to this chain, this vault, this epoch and this action id. |
| A one-time key is used twice | Weakens 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.
- Store it offline: an encrypted USB drive or an encrypted backup. Keep two copies in different places.
- Never upload it to cloud chats or messengers, and never paste it into a website.
- The site asks you to download a fresh copy after you sign. That copy remembers which keys were used.
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
- 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.
- Use a long, unique password for the key file. Keep a recovery kit separately.
- Keep the 24-hour time-lock (or longer) for larger amounts.
- Check the Actions list regularly. An action you didn't queue means your key file leaked: cancel it and rotate.
- Rotate when fewer than about 20 keys remain.
- Test with a small deposit and a small withdrawal first.
Known limits
- Elysium itself, its bridge and its sequencer still use classical cryptography. YEkos protects the vault's authorisation logic, not the whole chain.
- ERC-20 tokens are only as safe as their own contracts.
- The time-lock protects you only if someone notices and cancels. Without a guardian, that someone has to be you.
- Tokens with transfer fees or rebasing may behave unexpectedly.
- Recovery trusts the guardian for 30 days: if both your key file is lost and the guardian is hostile, the guardian can take over unless you cancel in time with the old keys.
- No independent audit yet. The code, tests and a self-review are public in the repository.
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.