Lab 05

Zero-Knowledge Inference

Prove an AI decision is genuine

Create a private AI calculation and a mathematical receipt that catches a changed answer.

Overview

How can someone check a calculation without seeing its private inputs?

How this could help a business

This pattern can support privacy-sensitive verification between organisations. Production use also needs an appropriate model, legal review, secure input collection and a clear decision process.

What I built

  • A small trained credit-data model, a fixed-point version and comparisons of their predictions.
  • A proof circuit, browser proof worker and tests that reject changed public results.
Use an example. No technical knowledge required.
Data handling & current limitations

Practice data only, in New Taiwan dollars. A proof checks the calculation, not whether its advice is good.

Demo only. Each lab below explains which inputs stay on your device and which data is sent for server-backed features. Model files are downloaded and may remain in your browser cache. Hosting and security services also receive the network requests needed to serve the site.

Your private features, salt and model weights stay in this browser. The optional testnet check sends the proof and six public signals (model commitment, input commitment, prediction, risk bucket and two thresholds) to our server, which passes them to the Sepolia verifier through an RPC provider. Those six values are visible to both.

A valid proof checks the calculation, not whether the AI is fair, accurate or suitable for lending. Practice data only; never a real credit decision.