How TSN works
How GPRU Proofs Guard User State
A plain-language overview of the zero-knowledge proof intended to protect private state before TCAP settlement.
The experimental first-release v1 credit uses thirteen public inputs and fourteen verifier IC points, with keys matching the private-amount circuit. Existing amount-public keys require explicit rekey; older verifier account layouts require their separate one-time migration. Exact internal account/instruction identifiers are documented in the credit ABI. Complete epoch accounting has a separate five-input verifier/key and six IC points. Deployment, funding-root initialization, credit rekey, epoch enrollment and persistent service configuration are separate prerequisites.
GPRU is designed to guard the integrity and privacy of a user’s private state as it is presented to TCAP for a balance-changing action. A Groth16 proof lets a verifier check a statement about hidden data without receiving the private data itself.
In this design, the proof is intended to establish that the user’s hidden state is current and that the requested change follows from it. TCAP then applies the asset, authorization, and liquidity checks and governs the actual settlement. The proof does not give GPRU custody of the funds or independently authorize a payment.
For native credit, the SDK generates a private funding-note opening and the wallet signs its commitment. After checking the actual deposit transfer, TCAP appends a leaf bound to that commitment, registered token and amount. The circuit privately reconstructs the leaf, proves membership under a current or retained root authenticated by TCAP’s global funding account, binds the exact asset/amount to the credit and derives its one-time nullifier from the note secret. Reusing that secret cannot produce a second nullifier by changing the Node, work ID or root. The opening, leaf, note commitment and append index are absent from the public credit statement.
The proof is one part of a larger protocol contract: the private statement, transaction record, on-chain verifier, and TCAP state transition must all agree. A proof that checks only a different statement would not validate the user’s encrypted balance record.
The current experimental credit publishes a freshly blinded amount commitment instead of plaintext amount, and advances the head/nullifier root plus epoch digest without reserve liability changes. Node prepares one aggregate proof covering every ordered opening in an eligible 2–64-credit epoch. GPRU verifies that proof; TCAP owns the transcript and reclassifies the authenticated total once. Node schedules 2–63 credits after 120 slots from the first credit, or 64 immediately; this maturity threshold is not epoch expiry, and a singleton remains open. See the TCAP lifecycle for account reuse and capacity.
Funding membership is checked against a current or retained root in the global funding account. A single confirmed deposit can support credit. Deposits and epoch totals remain public, as do token, roots, points, ciphertext, accounts and timing. Trusted Node access to verification openings/routes and public wallet funding are accepted boundaries. Public registry/head history can still support correlations between TCAP actions. Offline real proofs and the November 16 credit and accounting record cover separate checks. Public-observer unlinkability, owner-history completeness, and other action paths require separate evidence.
The circuit and proving-key lifecycle are engineering materials kept in the repository documentation, rather than setup instructions for an application integrator.
The current TIN-Debit contract uses 26 public inputs, two compact encrypted owner Memos and a separate verifier. Sender approval/opening is sufficient; the recipient remains offline. Circuit domains and runtime input order are aligned, and Node/Receiver/Cranker/SDK/XP paths are implemented under verification. Exact local circuit/proof results and deployed/live execution remain separate evidence. The earlier twenty-input transfer results below retain their historical scope.
The offline-recipient TIN-to-TIN transfer experiment uses a separate twenty-input statement to prove a same-asset sender debit and recipient point credit together. It requires only the sender’s balance opening and registered-owner approval. The recipient’s stored point is authenticated against the selected state and credited by the same homomorphic amount/blinding increment used by existing deposit credit; the recipient supplies no opening or signature and can remain offline. An in-memory preparer validates the sender’s disclosure and selected context, then constructs both encrypted successor records under the registered public keys. Existing wallet deposit/credit behavior and the credit-only accounting runtime are unchanged.
Sender openings and later owner recovery use u128 balances, while each transfer amount remains u64, so legitimately accumulated credits above u64 fit the new transfer relation. There is no local recipient numeric range proof. Its lifetime bound depends on authenticated canonical root lineage with nonresetting u64 sequences and admitted u64 credits; that source-level assumption needs independent program/lineage review and is not an audited guarantee.
Each complete transfer Memo is hashed into the proof’s sender or recipient successor head. The circuit does not prove encryption correctness or record decryptability. Later owner recovery checks the exact Memo hash, explicit debit/credit leg, private amount commitment and successor portfolio/point against an independently verified twenty-input statement, then reconstructs the resulting balance point. These SDK helpers do not verify a Groth16 proof or finalized receipt themselves, and recipient recovery is not required for preparation. These observations apply to the earlier twenty-input design. For the current transfer flow and deployment requirements, see Send from one TIN to another.
The public funding root is also an anonymity-set boundary. The November 5 public-only regression reproduced both old signature/nullifier links and found that the new nullifier no longer follows that formula, while linking the new credit to its only deposit through an independently reconstructed one-leaf funding root. A successful proof over one eligible deposit does not conceal which deposit funded it. Larger shared-root sets require separate analysis of public token/amount, timing and prior spend knowledge; see the threat model.