Deposit
TL;DRA deposit moves SPL tokens into the Solana vault and appends a new note
commitment. Before custody changes, the vault verifies a VALID_DEPOSIT proof that
the commitment contains the public mint and amount and a valid hidden owner. The
transaction reveals the funding signer, mint, and gross amount, but not the
wallet-wide note owner or the note’s inner hash.
What a deposit does
The client constructs a recoverable note, proves it is well formed, and sends a direct Solana transaction. The vault verifies the proof first; an invalid proof cannot transfer tokens, increment liabilities, or append a leaf. The public transaction carries:- the destination tree shard;
- token mint and deposit amount;
- the opaque note commitment;
- a field-safe recovery nonce; and
- the Groth16 proof.
Using the SDK
Recovery
Deposits are recoverable from the encrypted master-seed backup plus finalized chain history. During recovery, the client:- re-derives the wallet’s hidden owner commitment from the spending key;
- reads the public recovery nonce from the deposit instruction;
- re-derives the note-specific secret from the seed and recovery nonce;
- derives the hidden deposit inner hash from the nonce and note secret; and
- reconstructs and verifies the note commitment.