Examples
The examples/
directory contains practical demonstrations of zkML models:
Article Classification
A text classification model that categorizes articles into business, tech, sport, entertainment, and politics.
cargo run --release --example article_classification
This example:
Tests model accuracy on sample texts
Generates a SNARK proof for one classification
Verifies the proof cryptographically
Transaction Authorization
A financial transaction authorization model that decides whether to approve or deny transactions based on features like budget, trust score, amount, etc.
cargo run --release --example authorization
This example:
Tests the model on various transaction scenarios
Shows authorization decisions with confidence scores
Generates and verifies a SNARK proof for one transaction
Last updated