Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions docs/education/BLOG_POSTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
# PrivacyLayer Education Hub - Blog Posts

This directory contains comprehensive blog posts about privacy, zero-knowledge proofs, and PrivacyLayer technology.

---

## Blog Post Series

### 1. Understanding Privacy in Web3: Why It Matters

**Summary:** An introduction to the importance of privacy in blockchain and cryptocurrency transactions.

**Key Topics:**
- The privacy paradox in public blockchains
- Why transaction privacy matters for individuals and businesses
- Regulatory landscape and compliance considerations
- Privacy vs. anonymity: Understanding the difference

**Read Time:** 8 minutes

---

### 2. Zero-Knowledge Proofs Explained Simply

**Summary:** A beginner-friendly explanation of ZK proofs with real-world analogies.

**Key Topics:**
- What is a zero-knowledge proof?
- The magic cave analogy
- Interactive vs. non-interactive proofs
- How ZK proofs enable privacy

**Read Time:** 10 minutes

---

### 3. How PrivacyLayer Works: Technical Deep Dive

**Summary:** A comprehensive technical overview of PrivacyLayer's architecture and mechanisms.

**Key Topics:**
- Privacy pool architecture
- Deposit and withdrawal flows
- Merkle tree commitment scheme
- Noir circuit implementation
- Stellar integration

**Read Time:** 15 minutes

---

### 4. Privacy Coins vs. Privacy Layers: A Comparison

**Summary:** Understanding the differences between privacy-focused blockchains and privacy layers.

**Key Topics:**
- Privacy coins: Monero, Zcash, Dash
- Privacy layers: Tornado Cash, PrivacyLayer
- Regulatory implications
- Use cases and trade-offs

**Read Time:** 12 minutes

---

### 5. Building Private Applications with PrivacyLayer SDK

**Summary:** A developer guide to integrating privacy features into applications.

**Key Topics:**
- SDK installation and setup
- Initializing the privacy client
- Depositing funds privately
- Withdrawing funds anonymously
- Best practices for privacy

**Read Time:** 20 minutes

---

### 6. The Mathematics Behind ZK Privacy Pools

**Summary:** A mathematical exploration of the cryptographic primitives used in PrivacyLayer.

**Key Topics:**
- Pedersen commitments
- Merkle tree construction
- Nullifier design
- Poseidon hash function
- Groth16 proof system

**Read Time:** 25 minutes

---

### 7. Compliance and Privacy: Navigating the Regulatory Landscape

**Summary:** How PrivacyLayer balances privacy with regulatory compliance.

**Key Topics:**
- KYC/AML considerations
- Travel Rule implications
- Geographic restrictions
- Compliance tools and features
- Future regulatory trends

**Read Time:** 15 minutes

---

### 8. Security Audits and Best Practices

**Summary:** An overview of security considerations for privacy protocols.

**Key Topics:**
- Smart contract security
- Circuit verification
- Key management
- Operational security
- Audit methodology

**Read Time:** 12 minutes

---

## Publishing Schedule

| Post | Target Date | Status |
|------|-------------|--------|
| Understanding Privacy in Web3 | Week 1 | Draft |
| Zero-Knowledge Proofs Explained | Week 1 | Draft |
| How PrivacyLayer Works | Week 2 | Draft |
| Privacy Coins vs. Privacy Layers | Week 2 | Draft |
| Building with PrivacyLayer SDK | Week 3 | Draft |
| Mathematics of ZK Privacy Pools | Week 3 | Draft |
| Compliance and Privacy | Week 4 | Draft |
| Security Audits and Best Practices | Week 4 | Draft |

---

## Target Audience

- **Beginners:** Posts 1-2 provide foundational knowledge
- **Developers:** Posts 3, 5, 6 offer technical deep dives
- **Decision Makers:** Posts 4, 7 cover strategic considerations
- **Security Researchers:** Post 8 focuses on security aspects

---

## Content Guidelines

1. **Accuracy:** All technical content must be verified against the latest codebase
2. **Clarity:** Use analogies and examples to explain complex concepts
3. **Accessibility:** Content should be understandable without advanced cryptography knowledge
4. **Timeliness:** Update content as the protocol evolves

---

*Part of the PrivacyLayer Education Initiative*
215 changes: 215 additions & 0 deletions docs/education/FAQ.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
# PrivacyLayer FAQ

Frequently Asked Questions about PrivacyLayer, privacy, and zero-knowledge proofs.

---

## General Questions

### What is PrivacyLayer?

PrivacyLayer is a privacy protocol built on the Stellar blockchain that enables users to make private transactions using zero-knowledge proofs. It allows you to deposit funds into a privacy pool and withdraw them to a fresh address, breaking the link between your deposit and withdrawal.

### How is PrivacyLayer different from other privacy solutions?

| Feature | PrivacyLayer | Tornado Cash | Monero |
|---------|--------------|--------------|--------|
| Blockchain | Stellar | Ethereum | Native |
| Privacy Method | ZK Proofs | ZK Proofs | Ring Signatures |
| Smart Contracts | Soroban | Solidity | None |
| KYC Compatible | Yes | Limited | No |
| Transaction Speed | ~5 seconds | ~15 seconds | ~2 minutes |

### Is PrivacyLayer legal?

PrivacyLayer is designed with regulatory compliance in mind. The protocol itself is neutral technology. Users are responsible for complying with their local regulations. PrivacyLayer includes features for compliance where appropriate.

### What cryptocurrencies are supported?

PrivacyLayer currently supports:
- XLM (Stellar Lumens)
- USDC on Stellar
- Additional assets as the ecosystem grows

---

## Technical Questions

### How do zero-knowledge proofs protect my privacy?

Zero-knowledge proofs allow you to prove you have the right to withdraw funds without revealing which deposit you're withdrawing from. This is achieved through:

1. **Commitments:** Your deposit creates a cryptographic commitment that goes into a Merkle tree
2. **Nullifiers:** Each withdrawal uses a unique nullifier that prevents double-spending without revealing the source
3. **ZK Proofs:** The proof verifies you know the preimage of a commitment in the tree without revealing which one

### What is the minimum deposit amount?

The minimum deposit amount varies by asset and is designed to prevent dust attacks. Check the dApp for current minimums.

### How long should I wait before withdrawing?

For optimal privacy, wait until there have been several deposits after yours. A general rule:
- **Minimum:** Wait for 5+ deposits after yours
- **Recommended:** Wait for 20+ deposits
- **High Privacy:** Wait for 100+ deposits

### What are the fees?

Fees include:
- **Network fees:** Standard Stellar transaction fees (~0.00001 XLM)
- **Protocol fee:** A small percentage to maintain the protocol
- **Relayer fee:** If using a relayer for gasless transactions

Exact fees are displayed before each transaction.

### Can I track my deposit?

Yes, you can track your deposit using the note/private key generated when you deposited. **Keep this safe** - it's the only way to withdraw your funds.

---

## Security Questions

### What happens if I lose my deposit note?

**Your funds will be permanently lost.** The deposit note contains the private key needed to generate the withdrawal proof. There is no way to recover lost notes.

**Best practices:**
- Write down your note on paper
- Store multiple copies in secure locations
- Never share your note with anyone
- Consider using a hardware wallet for additional security

### Is PrivacyLayer audited?

Yes, PrivacyLayer undergoes regular security audits by reputable firms. Audit reports are available in the repository. Key audits include:

- Smart contract audits
- ZK circuit audits
- Infrastructure security reviews

### What are the risks?

1. **Smart Contract Risk:** Bugs in contracts could lead to loss of funds
2. **Circuit Risk:** Flaws in ZK circuits could compromise privacy
3. **User Error:** Losing notes or poor operational security
4. **Regulatory Risk:** Changes in regulations could affect usage

### How do I report a vulnerability?

Please report vulnerabilities through our Bug Bounty Program. See `docs/BUG_BOUNTY_PROGRAM.md` for details. Responsible disclosure is rewarded.

---

## Privacy Questions

### How private are my transactions?

PrivacyLayer provides strong privacy guarantees when used correctly:

**Protected:**
- Transaction amounts
- Source addresses
- Destination addresses
- Transaction timing (when used properly)

**Potentially Linkable:**
- If you deposit and withdraw identical amounts
- If you withdraw immediately after depositing
- If you use the same address for multiple transactions
- If your IP is visible (use VPN/Tor)

### Can someone prove I made a transaction?

No. Zero-knowledge proofs are designed so that:
- Withdrawals cannot be linked to specific deposits
- Multiple withdrawals cannot be linked together
- There's no way to prove who initiated a transaction

### What is an "anonymity set"?

The anonymity set is the pool of deposits that your withdrawal could potentially come from. A larger anonymity set means better privacy. PrivacyLayer's anonymity set grows with each deposit.

### Should I use a VPN?

Yes, for additional privacy. While PrivacyLayer protects on-chain privacy, your IP address could reveal your activity to:
- Your ISP
- The dApp operator
- Network observers

Using a VPN or Tor adds a layer of network-level privacy.

---

## Developer Questions

### How do I integrate PrivacyLayer into my application?

See our SDK documentation at `docs/SDK.md` for:
- Installation instructions
- API reference
- Code examples
- Best practices

### What programming languages are supported?

Primary SDK support:
- **TypeScript/JavaScript:** Full-featured SDK
- **Python:** Community SDK available
- **Rust:** Core library available

### Can I run my own relayer?

Yes. Relayers help users submit transactions without needing XLM for fees. See `docs/RELAYER.md` for setup instructions.

### How can I contribute?

We welcome contributions! See:
- `CONTRIBUTING.md` for guidelines
- Open issues labeled "good first issue"
- Our Discord for community discussion

---

## Troubleshooting

### My withdrawal failed. What should I do?

Common causes:
1. **Insufficient balance:** Check the pool balance
2. **Invalid note:** Verify your deposit note
3. **Network issues:** Wait and retry
4. **Already withdrawn:** Each note can only be used once

### I deposited but can't see my funds

Check:
1. Correct network (Stellar mainnet/testnet)
2. Transaction confirmed on Stellar
3. Your deposit note is valid

### The dApp is loading slowly

This could be due to:
1. High network traffic
2. Merkle tree synchronization
3. Browser performance

Try:
- Refreshing the page
- Clearing browser cache
- Using a different browser

---

## Getting Help

- **Documentation:** `docs/`
- **Discord:** [Join our community]
- **GitHub Issues:** For bug reports
- **Twitter:** @PrivacyLayer

---

*Last updated: March 2026*
Loading