Cross-chain synth on/offramp using LayerZero + ZK proofs + state channels hub
OmniSynth is a cross-chain synthetic asset protocol that lets users lock up one cryptocurrency (e.g., RBTC on Rootstock) to mint a synthetic token (e.g., USDS on Ethereum) that they can then trade, earn yield on, or redeem. Users interact through a single, simple web interface while the system handles complex under-the-hood messaging, proof verification, and settlement logic across Rootstock, Ethereum, and Flow.
OmniSynth is built around:
State Channels Hub (hub-and-spoke) — For fast, low-cost off-chain updates and liquidity routing.
LayerZero Messaging — Bridges state changes and transactions between Rootstock, Ethereum, and Flow.
Pyth Oracle — Ensures real-time, trustworthy pricing during mint/redeem events.
Zero-Knowledge Proofs via vlayer — To verify cross-chain state and enable email-based wallet recovery.
Blockscout SDK — For user transparency, Merits rewards, and transaction monitoring.
The system abstracts cross-chain DeFi complexity into intuitive flows like:
Lock BTC → Mint Synth → Trade or Earn Yield → Redeem BTC.
Track and reward user activity with Merits via Blockscout.
Recover access securely using email ZK proofs.
This enables a fast, composable, trust-minimized DeFi on/offramp spanning multiple chains.
OmniSynth consists of modular components stitched together across different blockchain ecosystems:
🌐 Frontend React.js + MobX: Reactive UI for fast state management and modular flows.
Blockscout SDK: Enables explorer integration, Merits tracking, and Tx status checking.
vlayer.js: Adds wallet recovery and proof-verification flows directly to the UI.
🧠 Backend & Smart Contracts Rust-based Backend Services: Handle secure relays, wallet sessions, and state channel lifecycle.
State Channels (Hub-and-Spoke Model):
Based on @statechannels framework.
Off-chain updates reduce gas and latency for swap/reward operations.
Central "hub" connects to liquidity points (exchanges, bridges, user wallets).
LayerZero:
Cross-chain messaging layer for Rootstock↔Ethereum↔Flow interactions.
Events like deposit confirmations and mint instructions travel through this layer.
🔗 Blockchain Components Rootstock: RBTC locked in collateral contracts.
Ethereum: Synth minting (e.g., sUSD), swap via 1inch, burn for redemption.
Flow (EVM-compatible): Yield strategies for staked synths.
Pyth Oracles: Used on Ethereum for mint amount calculation using live price data.
🔐 Proofs and Security vlayer Teleport: ZK circuits that prove Flow balances on Ethereum.
EmailProof: Lets users recover wallets via email-backed ZK workflows.
🧪 Hacky / Notable Things Mint circuit design: We created a gas-optimized oracle integration for SynthMint contract using Pyth+fallback.
Cross-chain failover: LayerZero messages are wrapped with fallback handlers in case of target-chain delays.
Local testnet orchestration: Spun up simulated LayerZero + multiple chains using Foundry + Anvil + Flow emulator.