Your key
Where the keys that read your balance come from, and how you get them back.
Your key is the pair of keys that read your Hush accounts: a twisted ElGamal keypair and an AES key. Encryption says what each one does.
Derived from a signature
Hush asks your wallet to sign one fixed message. The signature a wallet produces for a given message is the same every time, and nobody without the wallet's secret key can produce it. Your browser turns that signature into the two keys.
The message is solana-conf-bal/v1, the message Solana's confidential-balances key derivation defines. Another client that derives keys the same way gets the same keys from your wallet.
You sign once for the wallet, and the same keys read both your hSOL and your hUSDC account.
The app, the CLI and the SDK all derive them this way, so a wallet has the same keys in each, on any device.
Unlock
Unlocking is that signature. It is a message signature, so it sends no transaction and costs nothing. After it, the app decrypts your available balance, your pending credits and the amounts in your activity.
The app holds the keys in memory while the page is open and never writes them to storage, so reloading the page or closing the tab drops them and the app asks for the signature again. Hush's API never receives a key or a decrypted amount.
| The app is | It can |
|---|---|
| Not connected | Show public vault totals |
| Connected and locked | Show your Hush accounts as the chain stores them: ciphertexts |
| Unlocked | Read balances and amounts, set up, apply, build proofs, send and withdraw |
Recovery
There is nothing separate to back up. To reopen your balance on a new device, connect the same wallet and unlock. If you restore that wallet from its seed phrase, you restore your Hush key with it.
Your key and your wallet's key
Your wallet's own key signs transactions, as it does anywhere on Solana. Your Hush key reads ciphertexts and builds proofs. A send or a withdraw needs both: the proof from your Hush key and the signature from your wallet.