Architecture
System Overview
┌──────────────────┐ ┌──────────────────────────────────┐
│ Public Wallet │──── Deposit ─────→│ Private Reserve │
│ (on-chain addr) │←─── Withdraw ─────│ (Shared Privacy Layer) │
└──────────────────┘ │ │
│ • Aggregates all deposits │
│ • Encrypted stealth addresses │
│ • ZK proof verification │
│ • Balance ledger │
└──────────┬───────────────────────┘
│
Make Spendable / Move to Reserve
│
┌──────────▼───────────────────────┐
│ Spendable (Private Balance) │
│ │
│ • Isolated execution env │
│ • Private DeFi interactions │
│ • Fee deduction (15 bps) │
│ • Cannot call Reserve │
└──────────┬───────────────────────┘
│
Execute / Interact
│
┌──────────▼───────────────────────┐
│ Rujira Applications │
│ │
│ Trade • Perps • Liquidations │
│ Index • Borrow • Launchpad │
│ Strategies • Staking │
└──────────────────────────────────┘
┌──────────────────────────────────────┐
│ Gas Tank (RUNE) │
│ • ~0.02 RUNE per swap │
│ • Funded from Public Account │
│ • Only needed for swaps/sends │
└──────────────────────────────────────┘Smart Contract Architecture
Component
Role
Security Properties
Zero-Knowledge Proofs
Action
What the Proof Validates
What ZK Proofs Do NOT Hide
Technical Specifications
Parameter
Value
Built With
Security Audits
Audit
Auditor
Date
Scope
Last updated