Unshor docs
What Unshor is
Unshor is a vault contract on Elysium that holds HYPE, WHYPE and KNTQ under Winternitz one-time signatures instead of ECDSA keys. Hash-based signatures stay secure against quantum computers, which can break the elliptic curve keys of every normal wallet.
The signature scheme
- w = 256, n = 24 bytes, 34 chains: 32 for the message digest bytes and 2 checksum digits.
- Step:
H(i, j, x) = keccak256(uint8 i || uint8 j || bytes24 x)[0:24]. - Public key: each chain walked 255 steps from its secret; the vault root is
keccak256of the 34 ends. - Signature: chain i walked to the message digit di. The contract walks each chain the rest of the way and compares the root.
- The checksum makes a signature useless for any other message.
Your phrase and keys
A 24-word BIP-39 phrase gives 32 bytes of entropy. Vault k, chain i has the secret keccak256("unshor-v1" || entropy || k || i)[0:24]. The app derives everything in the browser and never stores or sends the phrase. A fingerprint lets you check you typed the same phrase.
Deposits and the one withdrawal
Anyone can deposit into any root. A vault is spent exactly once: the signed message fixes the destination, the amount of each asset and the next root. The contract sends the amounts, moves everything left to the next root and closes the old one forever.
The message is abi.encode("UNSHOR-ELY1", chainid, vault, root, to, next, amounts); the app compares it with the contract's message() before signing.
Any wallet can submit the signed withdrawal. It pays the gas and the fee and gains no control over the funds.
Fees
0.001 HYPE per withdrawal, fixed at deploy (capped at 0.01 in the contract). Deposits are free. Protocol fees are used to buy back and burn $UNSHR.
Safety and risks
- The contract is unaudited.
- Lose the 24 words and nobody can open your vaults. There is no recovery.
- The wallet that relays a withdrawal is a normal ECDSA wallet; it can't change where funds go, because the destination is signed.
- Only HYPE, WHYPE and KNTQ can be held, fixed at deploy.
Contracts
| Contract | Address |
|---|---|
| Unshor vault | Deploying soon |
| Treasury | Deploying soon |
Chain: Elysium (99901). Explorer: explorer.volta.family.