Vault, hSOL and hUSDC

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.

Your walletVaulthUSDC mintHush accountUSDChUSDC
A deposit moves the asset into the vault and mints the same amount. A withdraw burns it and releases the asset.

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

MintStands forDecimalsMint authorityAuditor keyAccount approval
hSOLSOL9The programNoneAutomatic
hUSDCUSDC6The programNoneAutomatic

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:

ActionVaultSupply
Deposit of an amountRises by the amountRises by the amount
SendUnchangedUnchanged
Withdraw of an amountFalls by the amountFalls 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.