Hand over the valet key. Keep the master key.
A trading account on Elysium. A hot key trades Montra coins inside your limits. Only your master key, made of hash signatures a quantum computer cannot forge, moves the money.
1,024 one-time keys per tree · 67 hash chains per signature · no fees · contract opening soon
-
The valet key trades.
Your bot or your phone holds it. It swaps Montra coins for HYPE through Montra's own router, and everything it buys comes back into your account.
1 HYPE → YTR → HYPE: 0.98012 HYPE back, all of it in the account · fork test
-
It cannot open the strongbox.
The valet key has no withdraw. It cannot change its own limits, pick another recipient, or trade past the daily cap.
withdraw(…) sent by the valet key → BadSignature()
-
Your master key opens it.
Its cuts are read from your account's Merkle root: 1,024 one-time hash keys, made from 24 words in your browser. One signature withdraws, changes the valet or the limits.
cut from a sample root 0x456e…4a20 · 67 chain values · 235,220 gas
-
One hook in the cabinet is used.
Each master signature uses one key, once. From 900 used keys the console asks you to rotate to a new tree, and the last key can only rotate.
0 used · 1,024 free
Why a quantum computercannot forge it.
Every Elysium wallet signs with ECDSA. A large enough quantum computer running Shor's algorithm can recover an ECDSA private key from its public key, and every address that has ever sent a transaction has shown its public key. A hash function has no such shortcut: the best known quantum attack on keccak-256 still needs about 2128 steps.
Your wallet key
- Scheme
- ECDSA on secp256k1
- Quantum attack
- Shor's algorithm: key recovered from the public key
- Use
- Unlimited signatures
- In VALET
- Pays gas only. It cannot move the account.
Your master key
- Scheme
- Winternitz one-time keys under a Merkle tree, keccak-256, w = 16
- Quantum attack
- Only generic search: about 2128 steps
- Use
- 1,024 signatures per tree, then rotate
- Standard
- The stateful hash-signature family of NIST SP 800-208 (LMS, XMSS)
One of the 67 chains. Each chain is a secret hashed 15 times. To sign, the browser reveals the link that matches one digit of the message (here 6). The contract hashes it the remaining 9 times and must land on the public end. A forger can only hash forward. Any other message needs at least one link earlier than the one revealed (the 3 checksum chains make sure of that), and getting there means running keccak backwards.
- 67 chains of 15 hashes per signature: 64 for the message, 3 for a checksum
- 1,024 one-time keys under one Merkle root, 10 hashes deep
- 2,464 bytes of signature and path on chain
- about 520 keccak hashes for the contract to check one
- 235,220 gas for a master withdraw on a fork of Elysium
- 1.1 million hashes to build a whole tree, in a Web Worker in your browser
What each key may do
The valet key
an ordinary ECDSA key, kept hot
- Buys and sells Montra coins paired with HYPE, through Montra's LaunchRouter only
- Every trade's output is paid to the Valet contract and credited to your account
- At most your daily cap in HYPE, counted at the pool's mid price (UTC days)
- Only pools whose fee is under your ceiling, and no buys inside an anti-snipe window
- A fill must stay within your slippage limit of the mid price, after the pool's fee
The master key
1,024 one-time hash keys from 24 words
- Withdraws HYPE or any token to any address
- Replaces the valet key, or turns trading off
- Changes the cap, the fee ceiling and the slippage limit
- Rotates the account to a new tree of 1,024 keys
- Any wallet may send a signed action and pay its gas: the signature binds the action, its arguments, the nonce, the chain, the contract and the account
Limits
- The master key is stateful. Never sign from a backup that is behind: signing twice with one key leaks enough to forge. The console counts keys as it signs and lets you export that count.
- 1,024 master actions per tree. Then you rotate. The last free key can only rotate, so an account can never lock itself out.
- The valet can still make bad trades inside its cap. A thief with the valet key could buy a coin they hold, or trade into a pool they moved first. The cap, the fee ceiling and the slippage limit bound that loss; they do not remove it.
- The daily cap resets at 00:00 UTC. Around midnight a valet can trade up to twice the cap within a few minutes.
- The gas payer's wallet is ordinary ECDSA. It only pays gas. A stolen gas wallet cannot sign master actions.
- Coins held in VALET do not collect Montra holder rewards for you.
- One router, one kind of pool. The valet trades Montra coins paired with native HYPE through LaunchRouter. Nothing else.
- Not audited. Tested with unit, fuzz and invariant tests and real Montra swaps on a fork of Elysium. Use small amounts.