Vault, hSOL and hUSDC
The program that holds the SOL and USDC, and the two mints that stand for them.
Mainnet USDC (mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) is a mint of the original SPL Token program, native SOL has no mint at all, and the Confidential Transfer extension exists in Token-2022. An existing mint can't move from one to the other. So Hush has one Anchor program, hush_vault, that holds the real assets and issues a Token-2022 mint for each.
The vault
The vault is two accounts at addresses derived from the program: one the program owns, holding SOL as lamports, and a token account holding USDC, which the program signs for. No wallet holds a key to them. Assets leave through the program's withdraw instructions, which release exactly what they burn.
The two mints
| Mint | Stands for | Decimals | Mint authority | Auditor key | Account approval |
|---|---|---|---|---|---|
| hSOL | SOL | 9 | The program | None | Automatic |
| hUSDC | USDC | 6 | The program | None | Automatic |
The program is each mint's authority, so hSOL and hUSDC are minted by its deposit instructions, which mint exactly what they take in. Automatic approval means a new Hush account can receive as soon as it is set up, with no step on Hush's side.
One for one
The supply of each mint equals what its vault holds:
| Action | Vault | Supply |
|---|---|---|
| Deposit of an amount | Rises by the amount | Rises by the amount |
| Send | Unchanged | Unchanged |
| Withdraw of an amount | Falls by the amount | Falls by the amount |
Both numbers are public and anyone can compare them. A withdraw releases the whole amount from the vault: you receive it less the 0.10% fee, and the fee goes to the fee recipient. Fees and the HUSH token follows it from there.
The program reference lists the instructions and accounts.