Exchanges prove solvency in real tokens — without revealing a single balance. Every customer balance is FHE-encrypted client-side, summed homomorphically on-chain, and only the aggregate total + a 1-bit solvency verdict is ever decrypted.
// 1. Customer encrypts balance client-side
const { encryptedValues, inputProof } = await encrypt({ values: [{ value: 4200n, type: 'euint64' }] })
// 2. Exchange signs the attestation off-chain
const { signature } = await signAttestation(key, epochId, token, customer, handle, deadline)
// 3. Contract sums ciphertexts homomorphically
await por.registerAttestation(epochId, handle, proof, signature)
// 4. Only the 1-bit verdict is ever public
const solvent = await por.isSolvent(epochId) // -> boolean
Each customer’s balance gets FHE.allowThis only — permanently undecryptable. The contract sums ciphertexts homomorphically. No plaintext ever touched.
1-bit verdict
“Is the exchange solvent?” — a public good. Anyone can verify on-chain.
aggregate total
The actual reserve number is commercially sensitive. Only a soulbound ERC-721 credential holder can decrypt it, off-chain via EIP-712. Revoke the credential → the auditor loses all future access instantly.