Zero-Knowledge Proofs
Privacy-preserving verification using ZKP technology.
Overview
Zero-Knowledge Proofs allow users to prove facts about themselves without revealing the underlying data.
Use Cases
| Proof Type | Proves | Hides |
|---|---|---|
| Balance | Sufficient funds | Exact amount |
| Age | Over 18/21 | Birthdate |
| Location | Country | Address |
| KYC | Verified status | Personal info |
How ZKP Works
Generating Proofs
// Create a balance proof
const proof = await pelago.zkp.createProof({
type: 'balance-threshold',
threshold: 100.00,
currency: 'USDC',
walletAddress: 'GXXXXX...'
});
// Verify the proof
const isValid = await pelago.zkp.verifyProof(proof);
Proof Types
Balance Threshold
Prove balance ≥ amount without revealing exact balance:
const proof = await pelago.zkp.createBalanceProof({
threshold: 500,
currency: 'USDC'
});
Age Verification
Prove age ≥ threshold without revealing birthdate:
const proof = await pelago.zkp.createAgeProof({
minimumAge: 21
});
Privacy Benefits
- Data minimization: Share only what's needed
- Selective disclosure: Control what to reveal
- Unlinkability: Proofs can't be correlated