---
# System prepended metadata

title: Pcash

---

# :money_with_wings:  Pcash

## :rolled_up_newspaper:  Overview

We propose to design and implement a **privacy-preserving fungible token** hosted on Mandala Chain's **Frontier VM (EVM-compatible environment)**. The system leverages **zero-knowledge proofs** (via Circom circuits) and **cryptographic stealth addressing** to enable private, unlinkable, and auditable token transfers.

Key architectural elements:

* **EVM Smart Contracts (Solidity on Frontier VM)** – Token contracts, commitment/merkle-tree management, nullifier checks.
* **ZK-SNARK Circuits (Circom)** – Transfer proofs, spend proofs, balance consistency checks.
* **Stealth Addresses** – Derived from **jubjub public keys** and notes encrypted with shared secrets.
* **Commitment Merkle Tree** – Coins stored as encrypted notes, revealed by nullifiers to prevent double-spends.
* **Client Software** – Off-chain wallet capable of scanning blockchain transfer events and identifying decryptable notes for the user.

The final system will enable private token transfers within the Mandala Chain ecosystem.

---

## :date: Project Timeline (8 Months)

### Phase 1: **Information Gathering & Architecture (2 Weeks)**

* Requirements analysis with Frontier VM EVM constraints.
* Research Circom integration with Frontier VM pairing precompiles.
* Design system architecture (token contract, circuits, client scanning).
* Define threat model & compliance considerations.

**Deliverables:**

* Technical specification document.
* Circuit design blueprints.
* Merkle tree & nullifier scheme specification.

---

### Phase 2: **Prototyping (6 Weeks)**

* Implement prototype Circom circuits for deposits, transfers, withdrawals.
* Smart contract skeleton (Merkle tree, nullifier set, proof verification).
* Prototype client for scanning & decrypting commitments.
* Initial gas-cost benchmarking on Frontier VM.

**Deliverables:**

* Working proof-of-concept contracts & circuits.
* Prototype wallet/client.
* Benchmarking report.

---

### Phase 3: **Testnet Development & Deployment (2 Months)**

* Deploy contracts to Mandala Chain's testnet.
* Expand Circom circuits for full functionality (multi-transfer, batching).
* Test transaction throughput, cost efficiency, scalability.
* Conduct internal security reviews.

**Deliverables:**

* Full-feature testnet deployment.
* Functional wallet for private transfers.
* Testnet performance & audit reports.

---

### Phase 4: **Mainnet Development & Audit (2 Months)**

* Finalize smart contracts, optimize gas usage.
* Expand Circom circuits (production readiness, optimized proving).
* Launch trusted-setups
* Independent security audits (smart contracts, circuits, wallet).

**Deliverables:**

* Audit reports (external + internal).
* Finalized circuits and contract codebase.
* Ready-to-deploy mainnet package.

---

### Phase 5: **Mainnet Launch & Handover**

* Launch token on Mandala Chain mainnet.
* Distribute production client wallet.
* Public bug bounty program.
* Documentation, knowledge transfer, and community onboarding.

**Deliverables:**

* Live deployed token with Zcash-style privacy features.
* Open-source repositories.
* Developer documentation and user guides.

---

## Total Cost

** \$X**

---

## Strategic Impact

This project will:

* Provide the **first Zcash-style privacy token** within the Mandala Chain ecosystem.
* Leverage **EVM compatibility** of Frontier VM to attract Solidity/ZK developers.
* Offer a **scalable privacy layer** for Mandala Chain dApps and DeFi protocols.
* Establish a foundation for **future private applications** (DEXes, lending, DAOs).