Rust + CKB SDK prototype for an atomic swap / channel boundary dApp.
backend/— Actix Web API server with CKB SDK integration points.frontend/— Yew web UI that talks to the backend.
- Rust toolchain (stable)
trunkfor Yew frontend builds- A local or remote CKB node RPC endpoint for the backend
- Start the backend:
cd "c:\Users\MRNOBODY\Documents\Fiber RGB++ Swap\backend"
cargo run- Start the frontend:
cd "c:\Users\MRNOBODY\Documents\Fiber RGB++ Swap\frontend"
trunk serve --open- Open the UI in the browser and use the swap form.
This prototype now includes:
POST /api/swap/initiatefor swap creation with mock transaction hashesGET /api/swap/{swap_id}for status polling and phase progressionGET /api/swapto list persisted swaps from the backendGET /api/swap/{swap_id}/rawto fetch raw transaction JSON for a specific swap- frontend status refresh, swap detail display, and swap history table
- raw transaction JSON for funding and leap transactions included in API responses
- simulated funding/leap workflow state and verification command output
- Implement real CKB transaction construction for channel funding and settlement.
- Add RGB++ leap integration using actual RGB++ validators and on-chain anchor logic.
- Add transaction validation and error handling for timeout/failure paths.
- Extend the UI with swap history, on-chain status indicators, and transaction hash links.