# Protocol brief

The payment model, authorization rules and trust boundaries in one technical overview.

Solana Qubit documentation · /docs/protocol-brief

## The model in one paragraph

Qubit is an operator-managed private payment channel with assets held in Solana escrow. Users fund a channel balance, make internal transfers without an individual public Solana transaction for each send, and request public payouts back to Solana. Optional independent-key custody uses a separate vault. It changes authorization while deposits and payouts remain public.

The intended use is a private working balance for repeated payments: contributors, counterparties and a user’s own accounts. The public Solana wallet remains the funding source and settlement destination; the private ledger records the intermediate balance changes.

## Trace one payment

> **Illustrative accounting**
> The amounts below omit network and service fees and show only this example’s activity, not the total escrow pool.

| Action | Alice’s Qubit balance | Bob’s Qubit balance | Public escrow change |
| --- | --- | --- | --- |
| Alice deposits 100 USDC | 100 | 0 | +100 USDC |
| Alice sends Bob 25 inside Qubit | 75 | 25 | No change |
| Bob pays out 10 to Solana | 75 | 15 | −10 USDC |

After the payout, this example has 90 USDC of remaining private balances against a net 90 USDC deposited. The internal send redistributes liabilities without changing public escrow. The payout is a real boundary crossing: private availability is reduced or reserved, and a public release must be reconciled before settlement is declared.

This is an accounting model, not a cryptographic proof of allocation. The operator’s ledger determines which user owns each part of pooled custody.

## What each boundary verifies

| Boundary | Enforces | Does not establish |
| --- | --- | --- |
| Wallet and client | The reviewed owner, asset, amount, recipient, deployment and authorization expiry | Correctness of the operator’s entire ledger |
| Private service | Account access, balance accounting and operation processing | Public-chain finality by itself |
| Solana escrow | The deployed program’s release authorization and replay rules | A proof of every private transfer or balance |
| Optional protected vault | Verified independent-owner and operator proofs for a protected public withdrawal | Honesty of the operator’s private balance allocation |

An accepted internal request and a finalized public payout are different events. The interface should report the one actually observed, and retain the same operation identity while an outcome is uncertain.

## Authorization and recovery

Normal channel access proves control of the associated Solana wallet. A sign-in message establishes a session; it is separate from an approval to move funds. Payment validation binds the reviewed action and exact amounts rather than accepting an arbitrary server-supplied transaction.

The optional protected implementation uses ML-DSA-44 for a separate owner key. Custody commands bind program, configuration, deployment domain, policy, epoch, nonce, asset, amount, destination and expiry. Public withdrawals require current owner and operator proofs over the same command. Key material and signatures are staged and verified in program accounts before the custody action; proofs are consumed rather than reused.

Recovery uses the existing independent key to authorize a replacement wallet and key. It advances the policy epoch and revokes earlier authorizations. The old Solana wallet does not authorize this recovery. The protected program is not active on mainnet yet, and a regular balance must be moved through an explicitly approved enrollment and funding flow.

- [NIST ML-DSA standard, FIPS 204](https://csrc.nist.gov/pubs/fips/204/final)
- [Recovery flow and backup requirements](/docs/backup-and-recovery)

## Privacy is a separate property

Outside observers do not receive a public Solana transaction for each internal transfer. They can see the entry and exit transactions. The operator can see internal activity. Matching amounts, timing and surrounding wallet activity can correlate a deposit with a payout, especially at low volume.

An escrow-to-recipient payout does not publish the sender’s full internal history or a direct transfer from their personal wallet. It also does not prove unlinkability. The current product does not claim a zero-knowledge anonymity set, exchange-routed payouts or confidential execution hidden from the operator. Post-quantum signatures authenticate; they do not encrypt the transaction history.

## What a release must demonstrate

- A deposit creates credit only from the expected verified receipt, and re-observation cannot create another credit.
- Concurrent sends cannot spend the same available balance twice.
- An uncertain payout remains reserved until its network outcome is reconciled; a timeout is not a refund proof.
- Signed approvals bind exact reviewed fields, reject expiry or changed wallets, and cannot be replayed as another action.
- Recovery preserves the same protected account’s balance while revoking old keys, sessions and stale authorizations.
- Deployed program bytes, authority state, configuration and operator identity match the reviewed release; source publication alone is insufficient.

These are the verification targets for deployment review and the isolated implementation tests. They are not a claim that an independent audit or a proof of the live service has been completed.

## Current scope and review status

| Capability | Status |
| --- | --- |
| USDC channel payments | Supported by the app, subject to the connected deployment’s health and action checks. |
| SOL and additional SPL tokens | Not enabled as funding assets in the current payment interface. |
| Independent-key protected balances | Separate enrollment and a verified deposit are required. Check the protected account page for current availability. |
| Hash-based hybrid authorization | Experimental and not enabled in the custody program. |
| Independent external audit | Not established for the new implementation. |
| Deployment-to-source verification | Must be established for each release; the public repository alone does not identify the hosted code. |

- [How the application is organized](/docs/architecture)
- [Current optional protection boundary](/docs/quantum-protection)

## Related guides

- [How Qubit works](/docs/architecture)

- [What stays private](/docs/privacy)

- [Optional quantum protection](/docs/quantum-protection)

- [Developer guide](/docs/developer-guide)
