> 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/guides/issuer-guide.md).

# Issuer guide

How to launch a private fungible token on pERC20.

## Overview

1. Deploy shared infrastructure (verifier + factory) — once per chain
2. Clone a new asset pool via factory
3. Configure issuer wallet + compliance policy
4. Mint initial supply to shielded notes
5. Distribute to holders (transfer / airdrop)

## Step 1 — Deploy factory stack

```bash
# See script/DeployOfficial.s.sol, script/deploy-all-chains.sh
forge script script/DeployOfficial.s.sol --broadcast
```

Deploys:

* `ActionGroth16Verifier` (Groth16 pairing verifier)
* `PERC20Factory` (EIP-1167 implementation + factory)

Cost: ~~9M gas full stack (~~$433 mainnet @ 20 gwei / \~$0.09 L2).

## Step 2 — Create asset

```solidity
factory.createPerc20("MyToken", "MTK", 6, issuerAddress);
```

Gas: \~321K per pool.

Emits `Perc20Created` with pool address (= token contract).

## Step 3 — Issuer responsibilities

| Role                            | Capability                                            |
| ------------------------------- | ----------------------------------------------------- |
| **Issuer**                      | `mint`, holds `issuer` address                        |
| **Admin** (= issuer by default) | `setFrozenRoot`, `setGroth16Verifier`, admin transfer |

## Step 4 — Mint

Issuer wallet:

1. Builds mint action witness (dummy input, `v = 0`)
2. Generates Groth16 proof
3. Calls `mint(amount, PrivacyCall)`

**Public**: mint amount, `totalSupply` increase\
**Private**: recipient

## Step 5 — Distribution

* **Direct transfer**: holder receives encrypted note at `perc1` address
* **Airdrop**: store-service + relayer pattern (see `docs/multichain.md`)
* **Approved spending**: holders use ZIP-32 subaccounts for EOA delegation

## Compliance

* Maintain off-chain blacklist SMT
* Call `setFrozenRoot(newRoot)` when list updates

## Web issuance UI

Reference: `apps/web/src/issuance/` — LaunchPanel, IssuancePanel, asset registry.

## Next

* [pERC20 issuance](/plabs-docs/privacy-core/perc20/issuance-and-deployment.md)
* [Multi-chain deployment](/plabs-docs/ecosystem/multichain.md)
* [Compliance freeze](/plabs-docs/privacy-core/compliance-freeze.md)


---

# 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/guides/issuer-guide.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.
