Skip to main content
TCAP (Transfer Confidential Asset Protocol) governs the assets and liquidity used for TSN settlement. It checks that an asset is accepted, that the action has the required authorization, and that the applicable reserve conditions are met before applying a balance-changing transition. For a private-state transition, GPRU guards the integrity and privacy of the user’s state presented to TCAP. Its proof is intended to show that the hidden state is current and that the proposed change follows from it. TCAP remains the authority over funds and applies the valid, authorized transition atomically; GPRU does not hold the user’s assets.

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 to ConfidentialOwner 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-byte TcapCreditEpochV1 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 SDK loadTinOwnerBalanceV1 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.

Current capability boundary

The private-credit replacement is experimental. Local real credit/epoch proofs and native verifier tests passed. A later isolated TCAP SBF build and synthetic compiled-program regressions verified account decoding and funding-root rejection checks; those tests stopped before proof acceptance. The corrected reference TCAP deployment at slot 522558160 was independently matched to the tested artifact with zero padding at finalized context slot 522559996 on November 15, 2026. The November 16 credit record establishes two confirmed private credits in one shared epoch and successful aggregate accounting. It does not establish public-observer action unlinkability or owner-history completeness; those two real credits were not matched to owners. Trusted Node verification uses private routes/openings as an accepted boundary. Individual amount is committed, while deposits, aggregate totals, token, root progression, points, ciphertext and timing remain observable. The threat model records public registration ownership and structural registry/head correlations. Confidential debit/exit and liquidity-provider admission/rewards require separate capability review and execution evidence. A single genuine confirmed deposit supports credit without creating a pool account or waiting for another depositor. The canonical global funding account authenticates current and up to 128 retained root/count records. New deposits within that window preserve funded membership; a retired root requires fresh unsigned verification. The latest shared head/nullifier state remains mandatory for one-time spending. Existing smaller funding accounts require an explicit same-address layout migration after compatible program deployment. The private amount circuit is unchanged by pool removal; matching credit/epoch artifacts and the protected opening journal remain necessary. Under the selected experimental first-release v1 contract, classic-token reserve deposits remain public and individual TIN-credit amounts use the private proof/commitment. Confidential funding for eligible Token-2022 assets is a future integration requirement, with no currently wired confidential-funding route. The full TCAP instruction contract and integration decisions are maintained in the repository documentation.