> For the complete documentation index, see [llms.txt](https://plabs.gitbook.io/plabs-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plabs.gitbook.io/plabs-docs/appendix/glossary.md).

# Glossary

## Modules

| Term                | Definition                                                       |
| ------------------- | ---------------------------------------------------------------- |
| **Privacy Core**    | Cryptographic layer + **asset protocols** (pERC20, Shield ERC20) |
| **Applications**    | Operations on privacy assets: pSWAP, pDEX, pX402                 |
| **OrchardVerifier** | On-chain Privacy Core state machine                              |

## Privacy Core

| Term               | Definition                                             |
| ------------------ | ------------------------------------------------------ |
| **Note**           | Shielded value unit (commitment + encrypted plaintext) |
| **cmx**            | Note commitment (Merkle leaf)                          |
| **Nullifier (nf)** | Spend tag preventing double-spend                      |
| **Action**         | One spend/create step + Groth16 proof                  |
| **PrivacyCall**    | On-chain payload: `actions` + `bindingSig`             |
| **cmxFrozenRoot**  | Compliance freeze IMT root                             |
| **bindingSig**     | Bundle-level value-conservation Schnorr                |
| **spendAuthSig**   | Per-action anti-tamper Schnorr                         |

## pERC20

| Term           | Definition                                                                                                                                  |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **pERC20**     | Native private fungible token asset protocol (Privacy Core)                                                                                 |
| **PERC20**     | Reference contract name                                                                                                                     |
| **perc1**      | Privacy recipient address — bech32m string, prefix `perc1` (EVM assets), e.g. `perc1q…`; decodes to 43-byte raw (`d[11] ‖ pk_d`) for prover |
| **Subaccount** | ZIP-32 per-spender account (approve)                                                                                                        |

## Shield ERC20

| Term             | Definition                                   |
| ---------------- | -------------------------------------------- |
| **Shield ERC20** | Public ERC-20 → private notes asset protocol |

## pSWAP

| Term                  | Definition                                                                             |
| --------------------- | -------------------------------------------------------------------------------------- |
| **pSWAP**             | Private atomic swap: coordinator registers legs, `settle` runs dual `IPERC20.transfer` |
| **SwapCoordinator**   | Application contract: `initiateSwap` / `joinSwap` / `settle`                           |
| **htlcHash**          | One-time `keccak256(preimage)` per swap; only preimage holder can `settle`             |
| **preimage**          | Secret `S` revealed at settle; binds LP leg to user leg (HTLC hashlink)                |
| **commitA / commitB** | `keccak256(abi.encode(PrivacyCall))` per leg; register vs settle integrity             |

## pDEX

| Term     | Definition                                             |
| -------- | ------------------------------------------------------ |
| **pDEX** | Private decentralized exchange & routing (coming soon) |

## pX402

| Term      | Definition                                   |
| --------- | -------------------------------------------- |
| **pX402** | Private HTTP 402 micropayments (coming soon) |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://plabs.gitbook.io/plabs-docs/appendix/glossary.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
