TCAP TIN Tip PDA
TheTCapTinTipV1 PDA is derived from ['tcap:tin-tip:v1', blindedRootCommitment]. The account stores:
The tip does NOT store: TIN, privacy-receiving root, seed, plaintext balance, snapshot key, or token account.
Privacy-safe transition: credit_tcap_tin_tip_v2
Thecredit_tcap_tin_tip_v2 instruction accepts only a TSN PDA authorization
and opaque tip-transition fields. It performs the following checks:
previous_commitmentandnew_commitmentmatch the expected sequence.sequenceis the next expected value.- Token registry ID matches the asset entry.
policy_commitmentmatches the tip.gpru_scope_commitmentmatches the TSN PDA authorization.- The nullifier differs from the tip’s last transition nullifier.
- Slot window is valid.
- Asset entry is active, approved, and unpaused.
Encrypted balance snapshots
After a successful credit, the owner device constructs a canonical private balance snapshot and computes its commitment. The snapshot is encrypted using AES-GCM in anEncryptedTCapBalanceSnapshotV1 envelope. The owner-held snapshot key and plaintext never leave the device.
To read a private balance, the owner device:
- Fetches the public tip commitment and sequence.
- Locates the matching encrypted snapshot ciphertext by
new_commitment. - Decrypts locally with the owner snapshot key.
- Verifies envelope bindings and commitment hash.
Commitment binding rules
TCAP enforces a strict binding between the on-chain tip and the off-chain snapshot:TCAP route V2 and TSN CPI
The V2 TSN CPI wrapper passes only the opaque authorization digest, validity window, predecessor/successor commitments, policy, GPRU scope and nullifier. It does not pass anAcceptedIntentV1, epoch commitment, settlement
commitment, or TCAP authorization receipt. A GPRU signature alone cannot move
custody; the approved TSN program must sign the CPI-derived authorization PDA.
Devnet reference
The TCAP program ID on Devnet is:Related pages
TCAP Credits
Developer integration with tip states and credit transitions.
Confidential Settlement
Full TSN to TCAP authorization flow and ABI.
Epoch Treasury
How settlement liability is tracked at the treasury layer.
Identity & Routing
TIN, master seed, and GPRU authorization derivation.