Example apps demonstrating how to use the Verity zero-knowledge proof SDK.
A SwiftUI app that generates and verifies zero-knowledge proofs on-device using the Verity SDK. Precompiled prover/verifier schemes are downloaded on demand — not bundled in the app.
- Xcode 16+
- XcodeGen (
brew install xcodegen) - iOS 16+ device or simulator
cd swift/VerityDemo
xcodegen generate
open VerityDemo.xcodeprojXcode will automatically fetch the Verity SPM package from the v0.3.0 release.
- Select an iOS simulator or device target in Xcode.
- Build and run (
Cmd+R). - Pick a circuit from the list.
- Tap Download Precompiled Schemes (one-time, cached locally).
- Tap Generate Proof.
Toggle Use Precompiled Schemes off to compile from the circuit JSON at runtime instead (slower but requires no download).
The .pkp (prover) and .pkv (verifier) files are not included in this repo. They are downloaded at runtime from a configurable URL.
To host them yourself:
- Create a GitHub Release (e.g.
schemes-v0.3.0) on this repo. - Upload each
.pkpand.pkvfile as a release asset:t_add_dsc_720_prover.pkp t_add_dsc_720_verifier.pkv t_add_id_data_720_prover.pkp t_add_id_data_720_verifier.pkv t_add_integrity_commit_prover.pkp t_add_integrity_commit_verifier.pkv t_attest_prover.pkp t_attest_verifier.pkv - Update
SchemeDownloader.baseURLinServices/SchemeDownloader.swiftto match your hosting URL.
Pre-built scheme files can be generated with the Verity SDK's prepare() + saveProver()/saveVerifier() methods, or found in the main verity repo under examples/ios/VerityDemo/VerityDemo/Resources/circuits/.
| Circuit | Description |
|---|---|
| Age Check (Fragmented) | 4-step chained passport proof (t_add_dsc_720, t_add_id_data_720, t_add_integrity_commit, t_attest) |
- On-demand scheme download with local caching
- Live phase-by-phase progress logging
- Timing and memory diagnostics
- Fragmented (multi-step) proof support with per-step breakdown
Coming soon.