Skip to main content

Overview

The ZK Proofs SDK enables you to generate zero-knowledge proofs that verify user reputation without revealing sensitive data. Prove score thresholds, achievements, attestations, and more while maintaining user privacy.

Generate Proof

Create a zero-knowledge proof for various verification types:

Proof Types

Prove score is above/below a threshold without revealing exact value

Parameters

object
required
Proof generation parameters

Verify Proof

Verify a zero-knowledge proof’s validity:

Parameters

object | string
required
Proof object or proof ID to verify

Returns

boolean
Whether the proof is valid
boolean
Whether the underlying claim is verified
boolean
Whether the proof has expired

Advanced Examples

Score-Gated Access with Privacy

Multi-Condition Proof

Selective Disclosure

Proof Caching

Batch Verification

Time-Bound Proofs

NFT Mint Proof

Recursive Proofs

Anonymous Voting

On-Chain Verification

For on-chain verification, you can export proofs compatible with Solidity verifiers:

Smart Contract Integration

Privacy Guarantees

ZK proofs guarantee:
  • Zero Knowledge: No information leaked beyond the claim
  • Soundness: Invalid proofs cannot be generated
  • Completeness: Valid claims always produce valid proofs
  • Privacy: Original data remains confidential

Performance Considerations

Error Handling

TypeScript Types

Best Practices

  1. Cache Proofs: Proof generation is computationally expensive
  2. Set Appropriate TTL: Balance security and user experience
  3. Verify Before Use: Always verify proofs on the server side
  4. Handle Expiry: Check proof expiration before verification
  5. Use Appropriate Type: Choose the right proof type for your use case

Next Steps

Privacy Guide

Learn about privacy architecture

ZK Proofs Advanced

Deep dive into ZK technology

Smart Contracts

Integrate proofs on-chain

Use Cases

See ZK proof examples