Weāve built a prototype atomic swap bridge that enables trustless XMR ā STRK/ETH exchanges on Starknet L2. This brings privacy-preserving currency to Starknetās DeFi ecosystem without custodians, bridges, or KYC.
What This Enables for Starknet
- Trustless swaps between XMR and Starknet assets using cryptographic binding via DLEQ proofs
- Ultra-low gas costs: ~$0.01-0.05 per swap verification (~270k-440k gas)
- Privacy-respecting gateway to DeFi for Monero users
- No bridges or custodians - pure cryptographic security
Cairo Implementation Highlights
The implementation leverages Starknetās Cairo VM capabilities:
- DLEQ Proof Verification: On-chain verification using Garaga v1.0.1 MSM library for elliptic curve operations
- BLAKE2s Challenge Computation: Gas-optimized at ~500k gas for full verification
- Production-Grade Libraries: OpenZeppelin Cairo Contracts v2.0.0 for security primitives
- Ed25519 Point Operations: Efficient scalar multiplication and point compression/decompression
Protocol Flow
- Alice generates secret scalar
tand creates adaptor signature - Alice deploys
AtomicLockcontract on Starknet with:- Hashlock
H = SHA-256(t) - Adaptor point
T = tĀ·G(Ed25519) - DLEQ proof proving
āt: SHA-256(t) = H ā§ tĀ·G = T
- Hashlock
- Bob verifies DLEQ proof on-chain, unlocks contract by revealing
t - Alice detects secret reveal via
Unlockedevent, completes Monero transaction
Current Development Status
Completed:
- BLAKE2s challenge compatibility between Rust and Cairo
- DLEQ proof generation (Rust) and verification (Cairo)
- Test suite with 139 production-grade test vectors
- CI/CD workflow with automated testing
- Informal security audit of critical paths
in Progress:
- Web interface for testnet experimentation
- Sepolia testnet deployment
- Race condition mitigations (two-phase unlock, watchtower service)
Technical Resources
Known Limitations
This is alpha software under active development:
- Protocol-level race condition exists
- Monero integration uses simplified adaptor signatures, not full CLSAG
- External security audit pending
- Recommended for small amounts only (under $100 equivalent) until v0.8.0 mitigations
Iām available to discuss Cairo implementation details, Starknet/Cairo technical specifics, and collaboration opportunities
Updates will be posted here as development progresses. Community feedback is essential for building robust infrastructure
Disclaimer: This is experimental software under active development. Do not use with real funds without security audit