Private bond infrastructure on Mantle which tokenize bonds with custom APY, trade on a TEE-powered dark pool, and earn yield ā no front-running, no MEV, full privacy!
# ShadowBond
**Private Bond Infrastructure on Mantle Network**
---
## Executive Summary
ShadowBond is a full-lifecycle bond platform that enables institutions and retail investors to issue yield-bearing tokenized bonds, trade them on a compliant dark pool, and earn APY ā all with institutional-grade privacy on Mantle Network.
---
## Problem Statement
### The $130 Trillion Problem
The global bond market is worth over **$130 trillion**, yet it remains:
1. **Illiquid** ā Secondary bond markets have limited liquidity, especially for smaller positions
2. **Opaque** ā Trading happens OTC with no price transparency for retail investors
3. **Exclusive** ā High minimums ($100K+) lock out retail participation
4. **Exposed** ā On-chain bond trading reveals order sizes, prices, and strategies to front-runners
### Current Pain Points
| Stakeholder | Problem |
|-------------|---------|
| **Issuers** | Complex, expensive bond issuance process requiring intermediaries |
| **Institutions** | No privacy when trading ā competitors and MEV bots see every move |
| **Retail Investors** | Locked out of yield-bearing bonds due to high minimums |
| **Market Makers** | Strategy leakage when providing liquidity on transparent DEXs |
### The Dark Pool Gap
In traditional finance, **40% of all equity trades** happen in dark pools to protect institutional strategies. Yet in DeFi:
- Every trade is visible on-chain before settlement
- Front-running and MEV extract value from traders
- Large orders cause slippage due to visible intent
- No compliant venue exists for private RWA trading
**There is no dark pool for tokenized bonds on any major L2.**
---
## Solution: ShadowBond
ShadowBond bridges the gap between traditional bond markets and DeFi by providing:
### Three Core Capabilities
```
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā
ā 1. TOKENIZE 2. TRADE 3. EARN ā
ā āāāāāāāāāāāā āāāāāāāāā āāāāāā ā
ā Issue bonds Private dark Automatic ā
ā on-chain with pool trading yield to ā
ā custom terms via TEE bondholders ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
```
### How We Solve Each Problem
| Problem | ShadowBond Solution |
|---------|---------------------|
| **Illiquidity** | 24/7 secondary market with private order matching |
| **High Minimums** | Fractional bond ownership via ERC-20 tokens |
| **No Privacy** | Orders encrypted in TEE, only proof hashes on-chain |
| **Complex Issuance** | One-click bond creation with configurable parameters |
| **Compliance Risk** | Reclaim Protocol KYC without exposing personal data |
---
## Platform Overview
### What is ShadowBond?
ShadowBond is a decentralized platform for the complete bond lifecycle:
1. **Bond Issuance** ā Anyone can issue tokenized bonds with custom APY, maturity, and terms
2. **Primary Market** ā Investors deposit stablecoins to mint bond tokens
3. **Dark Pool Trading** ā Secondary market with encrypted order matching
4. **Yield Distribution** ā Automatic APY accrual to all bondholders
5. **Redemption** ā Claim principal + yield at maturity
### User Flows
#### For Bond Issuers```
Define Terms ā Deploy Contract ā Receive Deposits ā Pay Yield ā Redeem at Maturity
```
#### For Investors```
Verify KYC ā Browse Bonds ā Deposit USDC ā Receive Bond Tokens ā Earn Yield ā Trade or Redeem
```
#### For Traders```
Connect Wallet ā Submit Encrypted Order ā TEE Matches Orders ā Settlement On-Chain
```
---
## Features
### 1. Bond Tokenization Engine
Create yield-bearing bonds with full customization:
| Parameter | Description |
|-----------|-------------|
| **Name & Symbol** | Bond identifier (e.g., "Treasury Bond 2025" / TB25) |
| **APY Rate** | Annual yield percentage (e.g., 8.5%) |
| **Maturity Date** | When principal can be redeemed |
| **Minimum Investment** | Lowest deposit amount accepted |
| **Total Supply Cap** | Maximum bonds that can be issued |
| **Payment Token** | Stablecoin for deposits (USDC, USDT) |
**Smart Contract Features:**- ERC-20 compliant bond tokens
- Automatic yield calculation based on time held
- Transferable on secondary market
- Redeemable at maturity for principal + accrued yield
### 2. Private Dark Pool
Trade bonds without revealing your strategy:
| Feature | Benefit |
|---------|---------|
| **Encrypted Orders** | No one sees your order until settlement |
| **TEE Matching** | Orders matched inside Trusted Execution Environment |
| **No Front-Running** | MEV bots cannot see or exploit your trades |
| **Atomic Settlement** | All-or-nothing execution on Mantle |
| **Proof-Only On-Chain** | Only cryptographic proofs visible, not trade details |
**Order Types Supported:**- Limit orders (buy/sell at specific price)
- Market orders (execute at best available price)
### 3. Compliant KYC via Reclaim Protocol
Privacy-preserving identity verification:
```
āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā
ā User has ā āāāŗ ā Reclaim ā āāāŗ ā ShadowBond ā
ā KYC done ā ā generates ā ā verifies ā
ā elsewhere ā ā ZK proof ā ā proof ā
āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā
ā
ā¼
āāāāāāāāāāāāāāāā
ā User can ā
ā trade with ā
ā privacy ā
āāāāāāāāāāāāāāāā
```
**Benefits:**- No personal data stored on-chain
- Prove accreditation without revealing identity
- One-time verification, reusable across sessions
- Compliant with regulatory requirements
### 4. Automatic Yield Distribution
Passive income for bondholders:
- Yield accrues every block based on APY
- Claimable anytime or auto-compounds
- Pro-rata distribution to all token holders
- Transparent calculation visible on-chain
### 5. Portfolio Dashboard
Track all bond positions in one place:
- Total portfolio value
- Accrued yield across all bonds
- Maturity calendar
- Trade history
- Performance analytics
---
## System Architecture
### High-Level Architecture
```
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā USER INTERFACE ā
ā (Next.js Frontend) ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā ā
ā ā Issue ā ā Trade ā ā Portfolio ā ā
ā ā Bonds ā ā Dark Pool ā ā Dashboard ā ā
ā āāāāāāāā¬āāāāāāā āāāāāāāā¬āāāāāāā āāāāāāāā¬āāāāāāā ā
āāāāāāāāāāā¼āāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāā
ā ā ā
ā ā ā
āāāāāāāāāāā¼āāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāā
ā MIDDLEWARE LAYER ā
ā ā
ā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā Reclaim Protocol ā ā Phala TEE ā ā
ā ā āāāāāāāāāāāāāāāāā ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā ⢠KYC Proofs ā ā ⢠Encrypted Order Book ā ā
ā ā ⢠Identity ā ā ⢠Private Matching Engine ā ā
ā ā Verification ā ā ⢠Settlement Trigger ā ā
ā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
ā RPC Calls
ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MANTLE NETWORK ā
ā (Smart Contracts) ā
ā ā
ā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāā ā
ā ā BondFactory ā ā Settlement ā ā TradingPermit ā ā
ā ā āāāāāāāāāāāā ā ā āāāāāāāāāāāā ā ā āāāāāāāāāāāāāāāā ā ā
ā ā Creates new ā ā Atomic swaps ā ā Soulbound KYC ā ā
ā ā bond tokens ā ā for trades ā ā credentials ā ā
ā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāā ā
ā ā
ā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāā ā
ā ā BondToken ā ā BondWrapper ā ā YieldDistributor ā ā
ā ā āāāāāāāāāāāā ā ā āāāāāāāāāāāā ā ā āāāāāāāāāāāāāāāā ā ā
ā ā ERC-20 with ā ā Wraps bonds ā ā Calculates and ā ā
ā ā yield logic ā ā for privacy ā ā distributes APY ā ā
ā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāā ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
```
### State Diagram: Bond Lifecycle
```
āāāāāāāāāāāāāāāāāāā
ā ā
ā CREATED ā
ā (Deployed) ā
ā ā
āāāāāāāāāā¬āāāāāāāāā
ā
ā Investors deposit
ā¼
āāāāāāāāāāāāāāāāāāā
ā ā
ā ACTIVE ā
ā (Accepting ā
ā Deposits) ā
ā ā
āāāāāāāāāā¬āāāāāāāāā
ā
āāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāā
ā ā ā
ā¼ ā¼ ā¼
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā
ā TRADING ā ā YIELD ACCRUAL ā ā TRANSFERS ā
ā (Dark Pool) ā ā (Continuous) ā ā (Secondary) ā
ā ā ā ā ā ā
āāāāāāāāāā¬āāāāāāāāā āāāāāāāāāā¬āāāāāāāāā āāāāāāāāāā¬āāāāāāāāā
ā ā ā
āāāāāāāāāāāāāāāāāāāāā¬ā“āāāāāāāāāāāāāāāāāāāāā
ā
ā Maturity date reached
ā¼
āāāāāāāāāāāāāāāāāāā
ā ā
ā MATURED ā
ā (Redeemable) ā
ā ā
āāāāāāāāāā¬āāāāāāāāā
ā
ā Holders redeem
ā¼
āāāāāāāāāāāāāāāāāāā
ā ā
ā REDEEMED ā
ā (Closed) ā
ā ā
āāāāāāāāāāāāāāāāāāā
```
### State Diagram: Trade Lifecycle
```
āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā
ā ORDER āāāāāāŗā ORDER āāāāāāŗā ORDER āāāāāāŗā TRADE ā
ā CREATED ā ā ENCRYPTED ā ā MATCHED ā ā SETTLED ā
ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā
ā ā ā ā
ā ā ā ā
ā¼ ā¼ ā¼ ā¼
User submits Sent to TEE TEE finds On-chain atomic
order params for private matching swap executes
storage counterparty
ALTERNATIVE PATHS
āāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā
ā ā ā ā
ā ORDER āāāāāāŗā ORDER ā
ā MATCHED ā ā CANCELLED ā
ā ā ā ā
āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā
ā
ā User cancels before match
ā¼
Order removed
from book
```
### Data Flow: Private Trade Execution
```
Step 1: Order Submission
āāāāāāāāāāāāāāāāāāāāāāāāā
User āāāŗ Frontend āāāŗ Encrypt Order āāāŗ Phala TEE
ā
āāā Order: {side, amount, price, bond}
All encrypted with TEE public key
Step 2: Order Matching (Inside TEE)
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā PHALA TEE ā
ā ā
ā Buy Orders Matching Sell Orders ā
ā āāāāāāāāāā Engine āāāāāāāāāāā ā
ā [B1: $1.02] āāāāāāāāāāāāāāāāāāāāāāŗ [S1: $1.01] ā
ā [B2: $1.01] Price/Time [S2: $1.02] ā
ā [B3: $1.00] Priority [S3: $1.03] ā
ā ā
ā ā ā
ā ā¼ ā
ā Match Found! ā
ā B2 ā S1 @ $1.01 ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Step 3: Settlement
āāāāāāāāāāāāāāāāāā
TEE āāāŗ Generate Settlement Proof āāāŗ Call Settlement Contract
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MANTLE NETWORK ā
ā ā
ā Settlement.sol ā
ā āāāāāāāāāāāāāā ā
ā 1. Verify proof from TEE ā
ā 2. Transfer bonds: Seller ā Buyer ā
ā 3. Transfer USDC: Buyer ā Seller ā
ā 4. Emit event (proof hash only, no amounts) ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Step 4: Confirmation
āāāāāāāāāāāāāāāāāāāā
Settlement Contract āāāŗ Event āāāŗ Frontend āāāŗ User notified
ā
āāā Only visible: trade happened
NOT visible: who, how much, price
```
---
## Why Mantle Network?
### Technical Alignment
| Mantle Feature | ShadowBond Benefit |
|----------------|-------------------|
| **Low Gas Fees** | Affordable bond issuance and trading |
| **Fast Finality** | Quick trade settlement (~1 second) |
| **EVM Compatible** | Standard Solidity smart contracts |
| **L2 Security** | Ethereum-backed security guarantees |
### Ecosystem Alignment
| Mantle Initiative | ShadowBond Integration |
|-------------------|------------------------|
| **RWA Focus** | Native tokenized bond infrastructure |
| **TaaS (Tokenization-as-a-Service)** | Built on Mantle's RWA vision |
| **Institutional Push** | Privacy features attract institutions |
| **USDY Integration** | Compatible with Ondo's USDY on Mantle |
### Why Not Other Chains?
| Chain | Limitation |
|-------|------------|
| Ethereum L1 | Too expensive for retail bond trading |
| Other L2s | Less RWA focus, no TEE partnerships |
| Alt L1s | Security concerns for institutional assets |
**Mantle is the only L2 with:**- Dedicated RWA tokenization focus
- Phala TEE integration for privacy
- Sub-cent transaction costs
- Growing institutional adoption
---
## Technology Stack
### Smart Contracts
| Component | Technology |
|-----------|------------|
| Language | Solidity 0.8.x |
| Framework | Foundry |
| Testing | Forge |
| Standards | ERC-20, ERC-721 (permits) |
### Privacy Layer
| Component | Technology |
|-----------|------------|
| TEE Provider | Phala Network |
| Hardware | Intel TDX |
| Order Book | TypeScript in TEE |
| Settlement | On-chain atomic swaps |
### Identity & Compliance
| Component | Technology |
|-----------|------------|
| KYC Provider | Reclaim Protocol |
| Proof Type | Zero-Knowledge Proofs |
| Credential Storage | Soulbound tokens |
### Frontend
| Component | Technology |
|-----------|------------|
| Framework | Next.js 14 |
| Language | TypeScript |
| Styling | Tailwind CSS |
| Wallet | RainbowKit + wagmi |
| State | React hooks |
### Infrastructure
| Component | Technology |
|-----------|------------|
| Blockchain | Mantle Network (L2) |
| RPC | Mantle public RPC |
| Indexing | Direct contract reads |
| Hosting | Vercel (frontend), Phala Cloud (TEE) |
---
---
## Deployed Contracts
### Mantle Sepolia Testnet
| Contract | Address | Description |
|----------|---------|-------------|
| MockUSDY | `0xA3178841da52F72E1a1DA8e6d365e06FAb704f6A` | Test yield token |
| MockUSDC | `0x38a576417c46526C217b970FfdD6891A4E1BF0cF` | Test stablecoin |
| BondWrapper | `0xfD60BE1D94521baA630A3C35759160CEE1D638Ed` | Privacy wrapper |
| Settlement | `0xE08A42e5592d07dcb51d06d5aAbBF3592CeA4E66` | Trade settlement |
| TradingPermit | `0x1461B95650B32a173CfD3C66D79afD4002fADC95` | KYC credentials |
---
---
## Business Model
### Revenue Streams
| Source | Fee | Description |
|--------|-----|-------------|
| **Issuance Fee** | 0.1% | One-time fee on bond creation |
| **Trading Fee** | 0.05% | Per-trade fee on settlement |
| **Yield Fee** | 1% | Small cut of distributed yield |
### Value Proposition by User
| User | Value |
|------|-------|
| **Issuers** | Low-cost bond issuance, global investor access |
| **Institutions** | Private trading, no strategy leakage |
| **Retail** | Access to yield-bearing bonds, low minimums |
| **Market Makers** | Protected liquidity provision |
---
## Competitive Landscape
| Platform | Bonds | Dark Pool | Privacy | On-Chain |
|----------|-------|-----------|---------|----------|
| Traditional Markets | Yes | Yes | No | No |
| Ondo Finance | Yes | No | No | Yes |
| Maple Finance | Yes | No | No | Yes |
| Renegade | No | Yes | Yes | Yes |
| **ShadowBond** | **Yes** | **Yes** | **Yes** | **Yes** |
**ShadowBond is the only platform combining:**- Tokenized bond issuance
- Private dark pool trading
- Regulatory compliance
- Full on-chain settlement
---
---
## Links
| Resource | URL |
|----------|-----|
| Live Demo | https://shadow-bond.vercel.app/ |
| GitHub | https://github.com/e-man07/shadow-bond |
---
## Conclusion
ShadowBond brings institutional-grade bond infrastructure to Mantle Network:
1. **Democratizes Access** ā Anyone can issue or invest in bonds
2. **Protects Privacy** ā TEE-powered dark pool prevents front-running
3. **Ensures Compliance** ā ZK-based KYC without data exposure
4. **Maximizes Yield** ā Automatic APY distribution to holders
We're building the future of private bond markets on Mantle.
---