Docs · Start
Quickstart
Two paths: commit a backup key for a wallet from the site, or clone the repository and run every contract and test yourself.
Protect a wallet
Scan it. Open the scanner and paste the address. No wallet connection is needed.
Connect and generate a seed. The commit flow creates 32 random bytes in your browser. They are never derived from your wallet key and never sent anywhere.
Back it up and prove it. Store the seed offline, then paste it back. The flow will not continue until the two match.
Commit. One transaction records the key hash and the block timestamp in the Registry.
For a plain wallet the commitment is a dated, public record that you held a post-quantum key before the alarm. Rejecting old signatures needs a smart account running the Vault validator.
Protect a smart account
A modular account that follows ERC-7579 installs the Vault validator as a module of type 1. The install records the backup key in the Registry in the same transaction. The commit flow detects a contract account and builds the call for you, and the Vault tools do the same offline.
// Sent by the account to itself
account.installModule(
1, // module type: validator
VAULT_VALIDATOR,
abi.encode(owner, pqKeyHash) // pqKeyHash is for key index 0
);
Run the code
Requirements: Node 22 and Foundry. jq is needed for the keeper script.
npm install
cd contracts && forge test -vv && cd ..
# Regenerate the vectors shared between Solidity and TypeScript
npm run vectors -w @enquantum/wots
npm run vectors -w @enquantum/tools
# Build the ABI package, the signer, the keeper and the site
npm run build
Run the fork test against the live chain:
cd contracts
ROBINHOOD_FORK_RPC_URL=https://rpc.testnet.chain.robinhood.com \
forge test --match-contract ForkTest -vv
Local end to end
This script starts a local chain, deploys the three contracts, installs a mock account, trips the alarm and watches the keeper flip the account. In our runs the flip landed one block after the trip.
npm run build -w @enquantum/keeper
./keeper/scripts/anvil-e2e.sh
Next: deploy to a network or read how the signature scheme works.