The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Umbra Proof listing page.
UMBRA
Swap XMR, BTC, ETH, TON, SOL and more — trustless MPC threshold signatures, real-time rates, zero KYC.
Umbra is a non-custodial cross-chain bridge built around Monero — the only cryptocurrency with mandatory privacy. It enables trustless swaps between privacy coins and public blockchains using FROST threshold signatures (2-of-3 MPC), meaning no single party ever holds your funds.
What makes Umbra different from every other bridge is the Proof Layer: the bridge does not ask to be trusted — it produces cryptographic evidence for everything it does, and ships the tools to check that evidence offline.
Bridges are the most-hacked primitive in crypto (Ronin $624M, Multichain $126M, Nomad $190M, Harmony $100M — drained over minutes-to-hours while nothing watched). Umbra's answer is a layer of verifiable accountability that no major bridge ships today:
Every lifecycle event of every order (order_created, status_confirming, status_completed, …) produces a receipt signed with the bridge's Ed25519 key over canonical JSON. Receipts for one order are hash-chained (each embeds the SHA-256 of the previous receipt), so a user holding their final receipt can detect any retroactive edit to their order's history. Receipts carry a hash of the destination address, not the address — the proof layer never becomes a metadata leak.
Receipts are archival evidence with a multi-decade shelf life. Alongside Ed25519, every receipt and checkpoint is signed with ML-DSA-65 (FIPS 204, CRYSTALS-Dilithium) over the same canonical bytes. Ed25519 stays the cheap, universally verifiable online layer; the ML-DSA signature keeps the archive forgery-proof against a future quantum adversary. Forging history requires breaking both schemes.
The audit hash-chain is sealed every few minutes into a signed Merkle checkpoint (the RFC 6962 construction used by Certificate Transparency, validated against the CT known-answer vectors). Anyone can then demand:
GET /v1/proof/inclusion/{audit_id} proves a specific audit entry is committed to by a checkpoint (log₂ n hashes, verifiable offline).GET /v1/proof/consistency?old_size=&new_size= proves a newer checkpoint is a pure append-only extension of an older one. History cannot be rewritten without detection.Mirror GET /v1/proof/checkpoint/latest on a cron job and you become an external witness the operator cannot silently contradict.
Five guards run every 30 seconds:
| Guard | Trips when | Would have caught |
|---|---|---|
| Outflow velocity | per-chain outbound volume exceeds hourly caps | Ronin, Harmony (key-compromise drains) |
| Order velocity | order creation rate spikes | bot floods, probing attacks |
| Failure spike | failed orders cluster | subsystem exploitation |
| Rate divergence | independent price sources disagree > 5% | oracle poisoning |
| ML anomaly (optional) | Isolation Forest flags order-flow combinations vs the 7-day baseline | drain signatures no fixed threshold expresses |
A trip pauses new intake only — in-flight swaps keep settling, so a false positive costs minutes of intake, not user funds. The sentinel never auto-resumes: a human must investigate and resume with a note. Every trip, pause, and resume lands in the tamper-evident audit chain and the public GET /v1/proof/status endpoint — the bridge cannot be paused or unpaused in secret. The ML guard fails open: a risk-engine outage never blocks the bridge.
GET /v1/proof/canary returns a signed statement embedding the current time and the latest checkpoint root — it cannot be replayed against a rewound log. A canary that stops updating is itself a signal.
Three independent verifiers ship in this repo, all validated against RFC 8032 test vectors and against each other:
| Verifier | Trust required |
|---|---|
website /verify page | verification runs client-side in your browser |
verifier/umbra-verify.html | none — save the file, open from file://, zero network requests, pure-BigInt Ed25519 with an on-load self-test |
tools/verify_receipt.py | none — pure Python stdlib, no dependencies; receipts/checkpoint/inclusion subcommands |
Pin the bridge's public key (GET /v1/proof/key) out-of-band once; from then on, every receipt either verifies or it doesn't. Telegram users get the same via /receipt <order_id> and /trust.
The full wire-format specification — exact canonical forms, algorithms, threat model, and test vectors for building your own verifier — lives in docs/PROOF_LAYER.md.
| Chain | Ticker | Type |
|---|---|---|
| Monero | XMR | Privacy L1 |
| Bitcoin | BTC | L1 |
| Ethereum | ETH | L1 |
| TON | TON | L1 |
| Solana | SOL | L1 |
| Arbitrum | ARB | L2 (EVM) |
| Base | BASE | L2 (EVM) |
| USDT / USDC | Stablecoins | Multi-chain |
Single Rust binary replaces what would typically be 3+ Python processes. The backend handles HTTP API, WebSocket streaming, background task scheduling, and blockchain RPC — all in one process using tokio.
Mobile-optimized bridge UI that runs inside Telegram. Tap, swap, done.
Full conversational bridge — /bridge, /rate, /history, /status. Works without ever leaving the chat.
Desktop dashboard with portfolio tracking, analytics charts, order history, public transaction explorer, admin panel — plus /verify (client-side receipt verification) and /transparency (live sentinel status, checkpoints, canary).
All three share the same Rust API and real-time WebSocket feed.
| Layer | Technology |
|---|---|
| Backend | Rust, axum 0.7, sqlx, tokio, tower |
| Database | PostgreSQL 17, Redis 7 |
| MPC | FROST threshold signatures (frost-secp256k1) |
| Blockchain | monero-wallet-rpc, toncenter, EVM JSON-RPC, Solana RPC, Bitcoin Core |
| Website | Next.js 15, React 19, Tailwind CSS 4, Zustand, Recharts, TON Connect |
| Mini App | Vite 6, vanilla JS, Telegram WebApp SDK |
| Bot | Python, aiogram 3, httpx |
| Monitoring | Prometheus, Grafana |
| Proxy | Nginx with rate limiting |
| Rates | CoinGecko -> Binance -> CoinCap (triple fallback) |
| Service | URL |
|---|---|
| Website | http://localhost |
| Mini App | http://localhost/app |
| API | http://localhost/api/health |
| Grafana | http://localhost:3002 |
| Prometheus | http://localhost:9090 |
Every step from 4 onward emits a hash-chained, dual-signed receipt the user can verify offline — the order's history is provable end to end.
initDataThe attestation identity is derived deterministically from SECRET_KEY by default (fine for development). In production set independent seeds — ATTESTATION_SECRET_KEY (Ed25519) and ATTESTATION_PQ_SEED (ML-DSA-65) — so receipt-signing custody can be separated from JWT custody, and publish the public keys from GET /v1/proof/key somewhere you don't control (a tweet, a git tag, another bridge's transparency page) so users can pin them.
Prometheus scrapes the /metrics endpoint for:
Grafana dashboards available at :3002 (default password: admin).
See backend/.env.example for the full list. Key ones:
| Variable | Description |
|---|---|
SECRET_KEY | JWT signing key (64+ chars) |
TELEGRAM_BOT_TOKEN | From @BotFather |
MONERO_RPC_URL | monero-wallet-rpc endpoint |
TON_API_URL | toncenter API |
ETH_RPC_URL | Ethereum JSON-RPC |
BRIDGE_FEE_PERCENT | Fee per swap (default: 0.3%) |
MPC_THRESHOLD | Signatures required (default: 2) |
ATTESTATION_SECRET_KEY | Ed25519 receipt-signing seed, 64 hex chars (derived from SECRET_KEY if unset) |
ATTESTATION_PQ_SEED | ML-DSA-65 seed, 64 hex chars (derived if unset) |
PQ_SIGNATURES_ENABLED | Post-quantum hybrid signatures (default: true) |
TRANSPARENCY_SEAL_INTERVAL_SECS | Checkpoint sealing cadence (default: 300) |
CANARY_STATEMENT | Warrant-canary text served at /v1/proof/canary |
SENTINEL_ENABLED | Circuit breaker (default: true) |
SENTINEL_OUTFLOW_CAPS | Per-chain hourly caps, e.g. XMR:1000,BTC:20 |
RISK_ENGINE_URL | Enables the Isolation Forest sentinel guard (optional) |
Source-available under the Source-Available License v1.0. You may view, study, fork, and run it locally for non-commercial evaluation and research. Commercial use, operating it as a service, or redistribution require a separate written license.