Don't trust. Verify. Anyone can independently test our BIP-322 implementation:
Click โ Press "Run workflow" โ Watch 32 tests execute โ See results in 2 minutes
Why this matters: BIP-322 signature verification is the foundation of ReserveBTC security. We let you verify it yourself:
- โ 32 security tests - Run them yourself on GitHub Actions
- โ Zero vulnerabilities - Independently verifiable
- โ Open source - Complete code transparency
- โ No trust needed - Mathematical proof, not promises
๐ Detailed Test Results (350 tests - click to expand)
- Unit Tests: 39/39 PASS - Bitcoin validation, address types, network detection
- Validation: 18/18 PASS - Form validation, input sanitization
- Components: 6/6 PASS - React component rendering, hooks
- API Tests: 6/6 PASS - REST endpoints, error handling
- Accessibility: WCAG AA compliant
Oracle Tests
- Oracle All Unit: PASS
- Boundary Fuzz: PASS
- Resilience: PASS
- Negative Delta (No Fee): PASS
Token Tests
- RBTCSynth: SOULBOUND VERIFIED
- VaultWrBTC: ERC20 SAFE
Fee System
- FeeVault: 31/31 PASS
- FeePolicy: 31/31 PASS
E2E & Security
- E2E Tests: COMPLETE
- Security Canary: NO CORRUPTION
- Cryptographic Attacks: 8/8 PASS
- Injection Attacks: 7/7 PASS
- Input Validation: 12/12 PASS
- Protocol Attacks: 3/3 PASS
- DoS Prevention: 1/1 PASS
- Legitimate Operations: 1/1 PASS
- BIP-322 Module: IMPLEMENTED
- Self-Send Detection: IMPLEMENTED
TL;DR: Keep your Bitcoin in your own wallet while using it in DeFi. No custody, no risk, 1:1 backing guaranteed.
- Traditional DeFi: "Give us your Bitcoin, we'll give you tokens" โ (You lose control)
- Most bridges: Custodial solutions that require trust โ (Risk of theft/hacks)
- ReserveBTC: "Keep your Bitcoin, we mirror its value" โ (You stay in control)
- Oracle-based monitoring: 24/7 automatic synchronization โ (No manual actions)
- Proof-of-reserves: BIP-322 cryptographic verification โ (Mathematical certainty)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ USER INTERFACE (Next.js 14) โ
โ https://app.reservebtc.io (Vercel Edge) โ
โ โ
โ โข /verify - Bitcoin address verification (BIP-322) โ
โ โข /mint - Start monitoring + receive rBTC-SYNTH โ
โ โข /dashboard - Real-time portfolio view โ
โ โข /faucet - Testnet ETH & BTC โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SUPABASE POSTGRESQL (Single Source of Truth) โ
โ โ
โ Tables: โ
โ โข transactions - All MINT/BURN/WRAP/UNWRAP operations โ
โ โข bitcoin_addresses - Verified addresses + monitoring status โ
โ โข balance_snapshots - Historical balance tracking โ
โ โ
โ Real-time: PostgreSQL Change Data Capture (CDC) โ
โ Security: Row Level Security (RLS) per user โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ORACLE SERVER (VPS - Backend 24/7) โ
โ โ
โ professional-oracle-server.js (PM2 Process Manager) โ
โ โ
โ 1. Monitors Bitcoin addresses (Mempool.space API) โ
โ - Checks balances every 15 seconds โ
โ 2. Detects MINT/BURN conditions โ
โ - Bitcoin received โ MINT tokens โ
โ - Bitcoin withdrawn โ BURN tokens โ
โ 3. Calls sync() on Oracle Aggregator contract โ
โ - Executes on MegaETH with <1s finality โ
โ 4. Writes transactions to Supabase PostgreSQL โ
โ - Single source of truth โ
โ 5. PostgreSQL CDC โ Real-time dashboard updates โ
โ - No browser polling needed โ
โ โ
โ Uptime: 99.9% | Memory: ~20MB | CPU: <2% โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SMART CONTRACTS (MegaETH Testnet - Chain 6342) โ
โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ
โ โ Oracle โ โ rBTC-SYNTH โ โ FeeVault โ โ
โ โ Aggregator โ โ (Soulbound) โ โ (Fee Manager) โ โ
โ โ 0xEcCC...aEAc โ โ 0x5b93...6F58 โ โ 0x1384...FD4f โ โ
โ โ โ โ โ โ โ โ
โ โ sync() โ โ mint()/burn() โ โ balanceOf() โ โ
โ โ lastSats() โ โ 1:1 Bitcoin โ โ user deposits โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Page: app.reservebtc.io/verify
Prove Bitcoin address ownership via BIP-322 signature:
- Enter your Bitcoin address
- Sign a message with your Bitcoin wallet
- System verifies signature cryptographically
- Address saved to Supabase with
is_monitoring = false
Result: Verified but NOT monitored yet (no fees charged).
Page: app.reservebtc.io/mint
Explicit two-step process for transparency:
-
Deposit ETH to FeeVault
- Minimum: 0.001 ETH
- Pays for Oracle operations (gas fees)
- Your funds, your control
-
Click "Start Monitoring"
- Updates
is_monitoring = truein Supabase - Oracle Server begins monitoring within 5 minutes
- rBTC-SYNTH tokens minted based on Bitcoin balance
- Updates
Result: Oracle monitors 24/7, automatic MINT/BURN operations.
Monitor: oracle.reservebtc.io
Backend Oracle Server handles everything:
- Every 15 seconds: Checks your Bitcoin balance via Mempool.space
- Balance increases: Automatically mints more rBTC-SYNTH tokens
- Balance decreases: Automatically burns rBTC-SYNTH tokens
- Balance reaches zero: Emergency burn, monitoring stops
Transparency: View live operations at oracle.reservebtc.io/status
Page: app.reservebtc.io/dashboard
Real-time portfolio interface:
- rBTC-SYNTH Balance: Current tokens (soulbound, non-transferable)
- Transaction History: All MINT/BURN/WRAP/UNWRAP operations
- Bitcoin Addresses: Verified addresses with monitoring status
- Real-time Updates: Supabase CDC pushes updates instantly
No manual refresh needed! Dashboard updates automatically when Oracle writes transactions.
PRODUCTION SYSTEM STATUS (OCTOBER 2025)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Oracle Server: ONLINE (VPS, PM2, 25+ hours)
Oracle Uptime: 99.9% (24/7 monitoring)
Active Users: 4 users
Bitcoin Addresses: 8 verified
Transactions Processed: 27 MINT/BURN operations
Memory Usage: 20MB (Oracle Server)
CPU Usage: <2% (Oracle Server)
Real-time Latency: <500ms (Supabase CDC)
Smart Contract Tests: 350/350 (100% pass rate)
Security Status: PRODUCTION READY
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
MegaETH Testnet - Chain ID: 6342
| Contract | Address | Purpose |
|---|---|---|
| Oracle Aggregator | 0xEcCC1Bf6Ad2e875152eE65DC365F90d07da7aEAc |
Core Oracle logic, sync() calls |
| rBTC-SYNTH | 0x5b9375b4ac0f61C7D5af32374aCCe0d058cE6F58 |
Soulbound Bitcoin mirror (non-transferable) |
| FeeVault | 0x1384d3A60a910B5b402ee09457b3eBfCC964FD4f |
Fee management, user deposits |
| FeePolicy | 0xc10fD3a2DF480CFAE8a7aBC2862a9c5724f5f4b4 |
Fee calculations |
| YieldScales Pool | 0x0bAbb640c2eb4501b3d62D090A2c34871EB95df8 |
DeFi yield engine (optional) |
Network Configuration:
- RPC URL:
https://carrot.megaeth.com/rpc - Chain ID:
6342 - Block Explorer: MegaExplorer
- Block Time: <1 second
- Finality: Instant
| Feature | URL | Description |
|---|---|---|
| Homepage | app.reservebtc.io | Your entry point to Bitcoin DeFi |
| Verify Address | /verify | Prove Bitcoin ownership (BIP-322) |
| Mint Tokens | /mint | Start monitoring & receive rBTC-SYNTH |
| Dashboard | /dashboard | Real-time portfolio view |
| Faucet | /faucet | Get testnet ETH & BTC |
| Feature | URL | Purpose |
|---|---|---|
| Yield Scales | /yield-scales | Earn 3-7% APY on USDT |
| Projections | /yield-scales/projections | Calculate potential returns |
| Risk Disclosure | /yield-scales/risks | Transparency on risks |
| Live Stats | /yield-scales/stats | Real-time TVL, APY |
| Feature | URL | Description |
|---|---|---|
| Oracle Dashboard | oracle.reservebtc.io | Live operations monitor |
| Status Monitor | oracle.reservebtc.io/status | Health metrics, uptime |
| Transparency | /oracle-transparency | Real-time sync operations |
Layer 1: Smart Contracts
โโโ 206/206 Security Tests Passed
โโโ Reentrancy Protection (OpenZeppelin)
โโโ Access Control (Committee-based)
โโโ Atomic Deployment Verified
โโโ Zero Critical Vulnerabilities
Layer 2: Oracle System (Backend VPS)
โโโ 24/7 Monitoring (99.9% uptime)
โโโ PM2 Process Manager (auto-restart)
โโโ State File Recovery (crash protection)
โโโ Automatic Emergency Burns
โโโ Real-time Bitcoin Balance Sync
โโโ Private Keys (backend only, not exposed)
Layer 3: Data Protection (Supabase)
โโโ PostgreSQL Single Source of Truth
โโโ Row Level Security (RLS) per user
โโโ Real-time CDC (Change Data Capture)
โโโ Encrypted Communication (HTTPS)
โโโ No localStorage Usage
โโโ GDPR Compliance Ready
Layer 4: Frontend Security
โโโ No Private Keys in Browser
โโโ No Blockchain Polling (backend-driven)
โโโ Input Validation & Sanitization
โโโ BIP-322 Signature Verification
โโโ WCAG AA Accessibility
Run tests yourself: GitHub Actions
- 32 security tests covering all attack vectors
- 0 vulnerabilities found
- 100% test coverage for signature verification
Supported address types:
- โ
Native SegWit (P2WPKH) -
bc1q... - โ
Taproot (P2TR) -
bc1p... - โ
SegWit (P2SH-P2WPKH) -
3... - โ
Legacy (P2PKH) -
1... - โ
Testnet variants -
tb1...,2...,m...,n...
1. Visit: https://app.reservebtc.io
2. Connect: MetaMask to MegaETH Testnet
3. Get ETH: Use faucet at /faucet (0.001 ETH minimum)
4. Verify: Your Bitcoin address at /verify (BIP-322 signature)
5. Mint: Deposit ETH, click "Start Monitoring" at /mint
Done! Check real-time updates at /dashboard# Clone repository
git clone https://github.com/reservebtc/app.reservebtc.io
cd app.reservebtc.io
# Install dependencies
npm install
# Run comprehensive health check
node scripts/smart-contract-health-check.js
# Check Oracle status
curl https://oracle.reservebtc.io/status
# Run all tests locally
npm test| Document | Description | Status |
|---|---|---|
| Production Architecture v4.0 | Complete system design, backend-driven architecture | โ Current |
| Active Monitoring System | Two-step verification โ monitoring flow, emergency burn logic | โ v2.6 |
| Mint System Testing Report v2.0 | Two-step verification โ monitoring flow validation | โ 100% Pass |
| Dashboard Documentation v2.0 | Real-time Supabase CDC architecture | โ Operational |
| Document | Description | Status |
|---|---|---|
| ReserveBTC Mint System (Legacy) | Old localStorage-based system | ๐๏ธ Deprecated |
| Dashboard (Legacy) | Old WebSocket polling system | ๐๏ธ Deprecated |
| Real-time Integration (Legacy) | Old unified real-time system | ๐๏ธ Deprecated |
| Document | Description |
|---|---|
| Security Audit BIP-322 | BIP-322 signature verification audit |
| Smart Contract Security Audit | Comprehensive contract security report |
| Security Policy | Vulnerability reporting guidelines |
| Test Status | Detailed test results (350 tests) |
| Database Architecture | Supabase PostgreSQL schema |
| Database Quick Reference | Common SQL queries |
| Document | Description |
|---|---|
| Yield Scales Protocol | DeFi yield mechanism (optional) |
| Professional Architecture | Technical deep dive |
- Oracle Server on VPS monitors Bitcoin 24/7
- Dashboard receives updates via Supabase CDC
- Zero blockchain polling in browser
- Works even when user is offline
- All data in PostgreSQL (no localStorage)
- Real-time updates via Change Data Capture
- Row Level Security prevents data leakage
- Complete transaction history
- PostgreSQL CDC โ WebSocket โ Dashboard
- Sub-second latency (<500ms)
- No manual refresh needed
- Scales to 10,000+ users
- Step 1 (Verify): Prove Bitcoin ownership (BIP-322)
- Saves to database with
is_monitoring = false - No Oracle operations start
- Zero fees charged
- Saves to database with
- Step 2 (Mint): Deposit ETH + click "Start Monitoring"
- Updates
is_monitoring = true - Oracle begins monitoring within 5 minutes
- Automatic MINT/BURN operations
- Updates
- Non-custodial: Bitcoin never leaves your wallet
- Cryptographic proof: BIP-322 signature verification
- Committee-based: Multi-sig Oracle control
- Soulbound tokens: rBTC-SYNTH non-transferable (1:1 backing)
- Open source: Complete code transparency
| Metric | Target | Actual | Status |
|---|---|---|---|
| Oracle Uptime | 99% | 99.9% | โ Exceeds |
| MINT/BURN Latency | <30s | 15-30s | โ Met |
| Dashboard Load Time | <2s | 1.2s | โ Fast |
| Real-time Update | <1s | <500ms | โ Instant |
| Memory Usage (Oracle) | <100MB | 20MB | โ Efficient |
| CPU Usage (Oracle) | <10% | <2% | โ Minimal |
| Test Pass Rate | 100% | 100% | โ Perfect |
| Security Vulnerabilities | 0 | 0 | โ Secure |
- โ Backend-driven Oracle monitoring (VPS)
- โ Supabase single source of truth
- โ Two-step verification โ monitoring flow
- โ Real-time dashboard (PostgreSQL CDC)
- โ Automatic MINT/BURN operations
- โ Emergency burn protection
- โ 350 tests passing (100%)
- ๐ Multi-address monitoring (when FeeVault permits)
- ๐ Email notifications (MINT/BURN alerts)
- ๐ Advanced analytics (transaction charts)
- ๐ Mobile app (React Native)
- ๐ Mainnet deployment (Bitcoin + Ethereum)
- ๐ Horizontal Oracle scaling (multiple VPS servers)
- ๐ Database sharding (partition by user for 100K+)
- ๐ Redis caching (reduce Supabase query load)
- ๐ Multi-region deployment (US, EU, Asia)
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
# Frontend
npm install
npm run dev
# Smart Contracts
cd contracts
forge build
forge test
# Oracle Server
cd oracle
npm install
pm2 start professional-oracle-server.js- Email: reservebtcproof@gmail.com
- Twitter: @reserveBTC
- Documentation: app.reservebtc.io/docs
- Discord: Join our community (coming soon)
- Security Issues: See SECURITY.md for responsible disclosure
- Bug Reports: GitHub Issues
- Feature Requests: GitHub Discussions
MIT License - see LICENSE file for details.
ReserveBTC Protocol v4.0 โ Your Bitcoin, Your Keys, Your Yield
Production Status: โ
FULLY OPERATIONAL
Network: MegaETH Testnet (Chain ID: 6342)
Architecture: Backend-driven, Supabase-first, Zero browser polling
Last Updated: October 2025