> ## Documentation Index
> Fetch the complete documentation index at: https://core.anylayer.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Zero-Knowledge Proofs

> Privacy-preserving score verification using ZK proofs

## Overview

Use zero-knowledge proofs to verify score thresholds or achievements without revealing exact values.

## Implementation

<CodeGroup>
  ```javascript JavaScript theme={null}
  // Prove score > 500 without revealing exact score
  async function proveScoreThreshold(user, threshold) {
    const score = await zkScore.getScore(user);
    const proof = await generateZKProof({
      public: { threshold },
      private: { actualScore: score.total }
    });
    
    return proof;
  }

  // Verify proof
  async function verifyScoreProof(proof, threshold) {
    return await verifyZKProof(proof, threshold);
  }
  ```
</CodeGroup>

## Related Documentation

* [Privacy Guide](/advanced/privacy)
* [Trust Registry](/contracts/trust-registry/overview)
