Shield
Pay Anywhere Dox Nothing
The problem Shield solves
Shield - Privacy-First Crypto Payments
Built on Near Intents for Zypherpunk Hackathon
The Problem It Solves
Crypto Payments Dox Your Wallet
Every time you make a crypto payment, you're essentially revealing your entire financial history. Traditional blockchain transactions expose:
- Your wallet address - permanently linked to your identity once known
- Your transaction history - anyone can trace every payment you've ever made
- Your balance - merchants and observers can see how much you hold
- Your spending patterns - creating a detailed profile of your financial behavior
This is the equivalent of paying with a credit card that shows everyone your bank statement. It's a fundamental privacy problem that has held back crypto adoption for everyday payments.
Real-World Consequences
- A coffee shop can see you bought from their competitor yesterday
- Merchants can price discriminate based on your visible wealth
- Bad actors can target high-value wallets
- Your financial life becomes public record
The Solution: Shield
Shield is a privacy-first payment infrastructure that enables seamless crypto payments without exposing customer wallet addresses.
How It Works
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Customer │ │ Shield │ │ Merchant │
│ (Solana/ZEC) │────▶│ Bridge │────▶│ (Shielded) │
│ │ │ │ │ │
│ Pays in SOL │ │ Converts to │ │ Receives ZEC │
│ or ZEC │ │ Shielded ZEC │ │ Privately │
└─────────────────┘ └─────────────────┘ └─────────────────┘
- Merchant generates QR code via Shield POS with order details
- Customer scans QR with Shield Wallet app
- Payment routes through shielded addresses - customer's source wallet is never revealed to merchant
- Merchant receives funds and sees payment confirmation with order details
Why Zcash Shielded Transactions?
Zcash shielded transactions use zero-knowledge proofs to validate transactions without revealing:
- Sender address
- Receiver address
- Transaction amount
Only the parties involved can see the transaction details. The blockchain only records that a valid transaction occurred.
What People Can Use It For
For Customers
- Pay at cafes, restaurants, and shops without revealing your wallet
- Use Solana - no need to hold or manage Zcash directly
- Seamless QR code experience - scan, confirm, done
- Financial privacy - your spending habits stay private
For Merchants
- Accept crypto payments with a simple POS interface
- Generate QR codes for each order automatically
- Real-time payment detection when funds arrive
- View transaction history with order memos for reconciliation
For Network States & DAOs
- Private treasury operations - pay contributors without revealing organizational finances
- Member payments - accept dues without doxing member wallets
- Cross-border payments - instant, private, low-fee international transfers
Key Features
| Feature | Benefit |
|---|---|
| Shielded Payments | Customer wallet addresses never exposed to merchants |
| QR Code Flow | Familiar, seamless payment experience |
| Multi-Currency | Pay with SOL, automatically bridged to shielded ZEC |
| Real-Time Detection | POS updates instantly when payment confirms |
| Order Memos | Transaction includes order ID for easy reconciliation |
| Zero Friction | Customers don't need to manage Zcash wallets |
Architecture
shield-ops/
├── Shield-Infra/
│ ├── backend/ # Rust backend - wallet management, Zcash integration
│ ├── frontend/ # Shield Wallet - customer-facing payment app
│ └── pos/ # Shield POS - merchant point-of-sale system
Tech Stack
- Backend: Rust + Actix-web + PostgreSQL
- Zcash Integration: zingolib for shielded transactions
- Frontend/POS: Next.js 14 + TypeScript + Tailwind CSS
- Bridge: Solana to Zcash via shielded pool
Demo Flow
- Merchant opens POS at
localhost:3001, creates an order - POS generates QR code with payment details (amount, merchant address, order ID)
- Customer opens Shield Wallet at
localhost:3000, scans QR - Customer confirms payment (SOL or ZEC)
- Shield bridges payment to merchant's shielded address
- POS detects payment, shows confirmation
- Both parties see updated balances - but merchant never sees customer's wallet
Privacy Comparison
| Traditional Crypto | Shield |
|---|---|
| Merchant sees your wallet address | Merchant only sees payment received |
| Anyone can trace your transactions | Zero-knowledge proof hides sender |
| Your balance is public | Your financial state stays private |
| Payment history is perm |
Challenges I ran into
Challenges I Ran Into
1. Zcash Blockchain Sync Time
The Problem: Zcash shielded wallets need to scan the entire blockchain from their "birthday height" to find transactions. For a wallet created months ago, this means scanning millions of blocks - taking 30+ minutes.
The Solution: We set wallet birthday heights to recent blocks (within days of creation) and implemented async scanning with progress indicators. For the hackathon demo, we use fresh wallets that sync in seconds since there's minimal history to scan.
2. Silent Wallet Creation Failures
The Problem: User signup was succeeding in the database, but wallet creation was silently failing. Users would register but have no wallet - breaking the entire payment flow.
The Solution: We separated the user creation and wallet creation flows. Added a dedicated /api/wallet/create endpoint that could be called independently, with proper error handling. This let us diagnose that the issue was in the Zcash key derivation, not the database layer.
3. zingolib Integration Complexity
The Problem: zingolib (the Rust Zcash library) has complex async patterns and requires careful handling of wallet state. The library expects persistent SQLite files per wallet and has specific initialization sequences.
The Solution: Created a clean abstraction layer (ZingoWalletManager) that handles:
- Per-user wallet file management (
wallet_data/wallet_{user_id}.db) - Proper async initialization with tokio
- Graceful error handling when wallets don't exist yet
4. Real-Time Payment Detection
The Problem: How does the POS know when a customer has paid? Zcash shielded transactions don't expose recipient addresses on-chain, so we can't just watch an address.
The Solution: We encode order IDs in transaction memos (ORDER:{uuid}|EMAIL:{email}). The POS polls the merchant's transaction history and matches incoming payments by memo content. When a transaction memo contains the order ID, we know that specific order was paid.
const matchingTx = transactions.find(tx =>
tx.direction === 'received' &&
tx.memo?.includes(`ORDER:${orderId}`)
);
Tracks Applied (2)
General Bounty
Network School
Private Payments & Transactions
NEAR Protocol
Technologies used

