VaultERC-7579 validator
An account that changes its own locks.
Vault is a module for smart accounts. It checks your usual signature until the alarm trips. After the flip it accepts only one-time hash-based keys, and each one names its successor.
Vault · example accountKey index 2
0x2222…2222Flipped
ECDSA · secp256k1Rejected
WOTS+ · one-time key 2Active
key 0→key 1→key 2→key 3
Each signature names the next key~103k gas
Before the flip~18k gas to validate
After the flip~103k gas to validate
Signature after2,176 bytes
StandardERC-7579 · type 1
One module, two modes. The flip is the only switch.
Nothing changes for you until the flip. After it, nothing signed by the old key is accepted again.
Before the flip
Your account works exactly as it does today.
- Signature
- 65-byte ECDSA from the owner, raw or EIP-191 prefixed.
- Validation gas
- About 18k, the cost of one signature recovery.
- ERC-1271
- Supported. Apps can verify signed messages as usual.
- Backup key
- Committed in the Registry at install, unused.
After the flip
Only one-time hash-based keys can move the account.
- Signature
- The next key's hash, then a 2,144-byte WOTS+ signature.
- Validation gas
- About 103k measured, 154k worst case.
- ERC-1271
- Returns invalid. A one-time key cannot be checked without spending it.
- Rotation
- Every operation moves the account to a fresh key.
Working tools. Your seed stays in this tab.
Look up an account, build the install call, or sign with the backup key once the account has flipped.
Look up any smart account.
See whether the Vault validator is installed, which key is in force and whether the account has flipped.
Account state
Enter an address to read its state from the validator.
Who can flip an account, and when.
- The account itself, any time. A user operation calling
flip()moves it early. - The owner, any time. The owner address can call
flipFor(account)directly. - Anyone, once the alarm has tripped. In practice a keeper flips every installed account in batches within a block or two.
- Nobody can flip it back. The flip is permanent for that installation.
What one signature carries2,176 bytes
- bytes 0 to 31
- nextKeyHash
- bytes 32 on
- 67 chain values, 32 bytes each
- signs
- keccak256(userOpHash ‖ nextKeyHash)
- then
- keyIndex + 1, old key retired
The next key is bound into the message, so nobody can swap it in transit.
Built to the standards your account already follows.
- ERC-7579 validator, type 1. Installs on modular accounts such as Kernel v3.1.
- ERC-4337 EntryPoint v0.7. Validation touches only storage keyed by the account, as bundlers require.
- Immutable. No owner, no admin and no upgrade path in the module.
- Not yet run through a live bundler. It is tested in Foundry, including against a fork of Robinhood Chain, but has not yet been installed on a real Kernel account or sent through a production bundler.
- Uninstalling removes the protection. After a flip, removing the module hands control back to the account's other validators.