How reserve protection works
The Wallet Deposit Intent contract separates reserve funding from the sender’s authorized next action. A TIN destination uses later TIN-Credit; wallet delivery has its own settlement contract. TCAP retains an intent-bearing deposit that commits toConfidentialOwner or PublicWallet settlement and records a pending funding claim, with no identified wallet-claim consumer in the SDK/services. Current native intent ingress requires a TIN and uses the separate funded-note deposit. Deposit confirmation alone establishes neither recipient credit nor wallet delivery.
Every Wallet Deposit Intent must keep its recipient/destination, requested action and authorization details private to authorized processing. Current native funding uses encrypted Receiver storage and omits intent contents from its public funding projection, while trusted Receiver/Node processing can read them. The retained claim’s public mode and metadata do not meet this requirement. Ordinary wallet funding still reveals source, asset, amount and timing, and end-to-end intent privacy remains unverified.
TCAP tracks actual custody assets and recognized obligations for each accepted token. In the current native funded-note path, a public wallet deposit increases assets and pending liabilities and appends an exact amount/asset-bound funded leaf. An individual private credit consumes its note nullifier and advances the recipient state plus blinded epoch transcript, with no token movement or public liability reclassification.
TCAP checks asset policy, authenticated selected global funding root, current private root/sequence and reserve solvency. GPRU proves exact funded membership and recipient arithmetic for the privately committed amount. Accepted root and epoch-digest updates are atomic. TCAP owns native credit-epoch accounting and calls GPRU to verify a separate complete 2–64-credit proof. TCAP then moves only the authenticated total from pending to settled confidential liabilities; custody assets, total obligations and uncredited pending funding remain unchanged. Failed proof, insufficient pending, overflow or replay rejects accounting.
Aggregate solvency protects the reserve as a whole, but it cannot by itself prove that one user’s private balance is correct. GPRU’s proof must bind the exact asset, action, amount, current hidden state, and valid successor, including affordability for a debit or exit. TCAP must apply that same proven amount to its accounting. This is why a proof is not a fund authorization on its own and why the proof statement and TCAP transition must agree.
The reserve is an asset-level liability ledger, while encrypted owner actions live in Memo and recipient state uses a shared authenticated root. For example, deposits totaling 100 USDC can leave 20 USDC uncredited pending and 80 USDC accounted after a complete multi-credit epoch. The 80 USDC aggregate is public; individual credit amounts are blinded. Native credit epochs are distinct from retained TSNP Epoch Treasury/payout APIs.
The replacement native-credit source uses tcap_fund_v1: after verifying the exact vault delta, TCAP appends a funding leaf bound to the wallet-signed note commitment, registered token and observed amount atomically with deposit accounting. The circuit proves private membership, asset/amount binding and a secret-derived nullifier under the shared funding root. Aggregate liabilities therefore do not substitute for proof of this credit’s funded note. The proof guide separates local verification from the required program/root/key activation.
Native credit-epoch lifecycle
An epoch groups accepted credits for one asset. Its first credit can initialize a shared 136-byteTcapCreditEpochV1 account; later credits in the same epoch reuse that account. Each credit appends its blinded amount commitment and nullifier to the digest. The account contains no per-TIN balance or per-note funding pool.
Node considers a complete 2–63-credit epoch for accounting once at least 120 slots have elapsed since its first credit. At 64 credits it considers accounting immediately, and further credits wait until accounting succeeds. The 120-slot threshold is Node scheduling maturity, not account expiry or an on-chain accounting deadline. A singleton stays open until another credit arrives; time alone does not roll the epoch forward.
Node reconstructs every ordered credit and protected opening, Receiver coordinates the separate TCAP_EPOCH_ACCOUNTING work, and Cranker submits the Mother-authorized transaction. GPRU verifies the complete proof against the TCAP epoch digest, count, token and aggregate. TCAP reclassifies the authenticated total once, marks the epoch accounted and increments the reserve’s accounting epoch. The next epoch’s first credit can create another shared account; current source retains accounted accounts and has no automatic closure or rent refund.
This is a credit-only transcript. Mixed credit/debit/exit epoch accounting is proposed work that needs its own proof, authorization and conservation contract. Retained TSNP EpochTreasury, payout and refund instructions have distinct accounts and do not determine this native TCAP epoch’s timing.
Balance history
The design records encrypted action data in transaction Memo instructions so the owner can reconstruct their history from chain data. A Memo is transaction data, not a private account or a guarantee that the transition is valid. TCAP’s on-chain checks and the proof must validate the action before it changes protocol state. The public SDKloadTinOwnerBalanceV1 performs identity authorization, registry validation and local wallet-authorized history recovery, with governed token ID to mint/decimals mapping. The protocol-tests/ui balance control supplies transport and renders that result. They reject incomplete or unsupported history and do not add spending or payout authority. See XP balance troubleshooting for the user flow and recovery limits.