# Shadow Protocol (ZK + x402)

> OVERVIEW ZK-powered payment protocol for NumPay with privacy, gasless transactions, phone-linked wallets, and x402 support.

NumPay Shadow Protocol is a privacy-preserving payment system that combines zero-knowledge proofs (Groth16 + ElGamal encryption) with NumPay's decentralized infrastructure to enable private, gasless, phone-to-wallet payments. Payment amounts are encrypted, sender identities are hidden, and all transaction fees are absorbed by NumPay's optimized token model.

**→ Privacy**: ElGamal-encrypted amounts + ZK proofs hide sender identity

**→ Phone-Linked**: Pay to phone numbers without revealing wallet addresses

**→ Zero-Fee**: NumPay absorbs network costs completely

**→ Gasless**: Smart contract relayers handle all on-chain operations

**→ x402 Protocol**: HTTP 402 Payment Required standard for APIs

**→ Decentralized**: No central authority, no data storage, no user tracking


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://numpay.gitbook.io/numpay/technology-architecture/numpay-shadow-protocol-zk-+-x402/shadow-protocol-zk-+-x402.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
