About
### description
A non‑custodial exchange and payments network that delivers instant, low‑fee onramp/offramp and cross‑asset settlement via generalized state channels in a hub‑and‑spoke topology, built on Rootstock/RIF for settlement and powered by Fetch.ai uAgents for autonomous orchestration.
### Problem it solves
- **Fiat↔crypto friction**: Slow, expensive, and opaque conversions. - **Retail payments on L1**: High latency/cost, poor UX for merchants and users. - **Cross‑asset fragmentation**: Custodial bridges/centralized providers dominate today’s flows. - **Operational load**: Manual risk, compliance, and routing processes don’t scale.
### Core idea
- **Generalized state channels**: Move most activity off‑chain; only open/close/disputes hit L1. - **Hub‑and‑spoke**: A capitalized hub provides quotes, routing, and risk; users/merchants connect as spokes. - **AI‑driven operations**: Fetch.ai uAgents automate quoting, risk, compliance, and rebalancing. - **Rootstock/RIF rails**: Bitcoin‑secured EVM finality with RIF tooling for payments and liquidity.
---
## Architecture
### On‑chain (Rootstock / RIF)
- **ChannelFactory**: Deploys/upgrades bilateral channel contracts. - **Adjudicator**: Enforces latest co‑signed state, resolves disputes, pays out. - **Token escrows**: Collateral vaults for stablecoins/native tokens on Rootstock. - **RIF integrations**: RIF Payments and Lumino‑style patterns for channel semantics and fee policies.
### Off‑chain (Agents, services, data plane) - **Hub Node (uAgent)**: - **Quoting & RFQ**: Firm/time‑boxed prices for swaps, on/off‑ramp, and payments. - **Routing**: Single‑hop via hub; multi‑hub federation is supported later. - **Risk engine**: Credit limits, exposure tracking, pre‑trade/post‑trade checks. - **Rebalancing**: Executes DEX/CEX trades or cross‑chain moves to maintain inventory. - **Fiat orchestration**: Connects PSPs/banks; handles payouts and receipts. - **Spoke Clients (uAgents)**: - Wallets, merchants, marketplaces, PSPs running lightweight agents. - Handle channel lifecycle, sign updates, request quotes, emit receipts. - **Watchers (optional)**: - Monitor channels; auto‑respond in disputes; provide liveness guarantees. - **Oracles & providers**: - Price feeds, KYT/KYC vendors, sanctions screening, bank/PSP webhooks.
### Control vs data planes
- **Control plane**: Agent‑to‑agent messages (quotes, intents, authorizations, risk decisions). - **Data plane**: Co‑signed channel state updates; optional Merkle‑batched receipts for audits.
---
## State channel lifecycle
- **Open**: Parties lock collateral into a channel on Rootstock via the `ChannelFactory`.
- **Update**: Off‑chain, co‑signed state transitions (balances, assets, conditions, fees).
- **Conditional transfers**:
- **HTLCs**: Hashlocks/timelocks for atomic multi‑party or cross‑asset flows.
- **Generalized conditions**: Oracle attestations (e.g., fiat cleared) or policy predicates.
- **Checkpoint (optional)**: Post compressed state to reduce dispute windows and costs.
- **Dispute/Close**: Either side can submit latest signed state to the `Adjudicator`; contract enforces payout.
---
## Core flows
### Onramp (fiat → crypto/stablecoin)
1. **Intent**: User requests amount/asset; hub returns firm quote. 2. **Authorization**: PSP/bank pre‑auth is obtained; uAgents record proof. 3. **Credit & deliver**: Hub grants conditional credit in the user↔hub channel and delivers the crypto off‑chain (state update). 4. **Settle fiat**: Hub settles with PSP; oracle/uAgent attestation lifts condition; balances finalized.
### Offramp (crypto/stablecoin → fiat)
1. **Intent**: User requests fiat payout; hub quotes rate/fee. 2. **Value transfer**: User moves crypto to hub via channel update (or on‑chain deposit). 3. **Payout**: Hub executes fiat transfer to user’s bank/card; attestation finalizes off‑chain state.
### Payments (merchant checkout)
1. **Quote**: Buyer agent requests merchant price; hub provides guaranteed total including FX/fees. 2. **Auth**: Buyer and hub co‑sign a conditional update; merchant receives instant authorization. 3. **Capture**: Upon fulfillment or time‑based event, condition clears; merchant’s balance finalizes. 4. **Settlement preference**: Merchant auto‑settles to fiat (offramp) or stablecoin (stay on‑chain).
### Cross‑asset / cross‑chain swaps
- **Atomicity**: HTLCs/conditions across two channels (user↔hub, hub↔liquidity venue). - **Inventory mgmt**: Hub rebalances via Rootstock DEXs, external CEXs, or additional channels on other chains.
---
## Economics and fees
- **Routing fee**: Basis‑points per executed payment. - **FX spread**: Transparent spread in quoted price. - **Lifecycle gas**: Users pay open/close; routine transfers are gasless (off‑chain). - **Tiering**: Volume‑based discounts; merchant programs for predictable cost.
---
## Security, trust, and risk
- **Non‑custodial**: Latest signed state is user‑recoverable via adjudicator; force‑close always available.
- **Hub collateralization**: Posted collateral plus dynamic credit limits per counterparty.
- **Watchers**: Third‑party services ensure timely dispute responses.
- **Compliance**: KYC/KYB for fiat endpoints, KYT, sanctions checks, travel‑rule‑ready messaging.
- **Audits and proofs**: Merkle‑batched receipts; periodic checkpoints for verifiable accounting.
---
## AI orchestration with Fetch.ai and uAgents
- **Autonomous workflows**:
- **Quoting**: Solicit multi‑venue quotes; pick best execution; issue firm, time‑boxed quotes. - **Risk**: Real‑time exposure checks, per‑user/merchant limits, anomaly detection. - **Rebalancing**: Trigger swaps/transfers when thresholds breached; schedule low‑cost windows. - **Compliance ops**: Automate KYC refresh, travel‑rule data exchange, and screening. - **Fiat events**: React to PSP webhooks; clear conditions; reconcile ledgers. - **Agent roles**: - **HubAgent**: Price, route, risk, and settlement control. - **MerchantAgent**: Pricing, refunds, payouts, settlement preference policy. - **BuyerAgent**: Funding, payment approvals, receipt management. - **WatcherAgent**: Channel monitoring and dispute response. - **Benefits**: Lower ops toil, faster response, safer limits, and better liquidity utilization.
---
## Technology stack
- **Settlement layer**: Rootstock (RSK) EVM secured by Bitcoin; RIF Payments and Lumino‑style channel semantics.
- **Smart contracts**: Solidity channel factory/adjudicator, token escrows, fee policies, checkpointing.
- **Agents**: Python uAgents (Fetch.ai) for hub, buyers, merchants, watchers.
- **Integrations**: PSPs/banks (ACH/SEPA/cards), price oracles, KYT/KYC providers, analytics.
- **Frontend**: Wallet/merchant UIs, SDKs for web/mobile and server integrations.
- **Observability**: Metrics, traces, balance and latency dashboards; anomaly alerts.
---
## Developer experience
- **SDKs/APIs**:
- Open/attach to channel, send payments, request quotes, subscribe to receipts. - Idempotent webhooks for fiat events; sandbox keys and simulators. - **Operational tooling**: - Risk policy editor, limit management, partial freeze/unfreeze, instant refunds. - Exportable audit trails and receipts; dispute assistant.
---
## Performance targets
- **p95 latency**: < 500 ms for authorizations and off‑chain transfers. - **All‑in cost**: Single‑digit bps typical; zero gas for routine messages. - **Reliability**: Auto‑failover watchers; SLOs on quote validity and payout times.
---
## Roadmap
- **MVP**: Single‑hub Rootstock deployment, stablecoin rails, card/ACH onramp, merchant checkout, force‑close, basic watcher.
- **Phase 2**: Cross‑chain swaps, multi‑hub routing/federation, automated rebalancing, enhanced analytics.
- **Phase 3**: Advanced risk engine (ML‑assisted), dynamic fee markets, privacy upgrades (payment privacy sets), broader fiat corridors.
---
## Differentiation
- **Latency/cost**: State channels outperform rollups/bridges for real‑time retail.
- **Capital efficiency**: Hub reuses collateral across many users; users avoid repeated L1 gas.
- **Safety**: Non‑custodial with adjudicator‑enforced exits and watcher redundancy.
- **AI‑native ops**: Fetch.ai uAgents continuously optimize quotes, risk, and liquidity.
In short: this system makes moving value between fiat and crypto feel instant and inexpensive, while preserving the safety of on‑chain finality (Rootstock/RIF) and leveraging autonomous uAgents (Fetch.ai) to run the complex routing, risk, and compliance workflows behind the scenes.
- Added a complete end‑to‑end description incorporating Rootstock/RIF settlement and Fetch.ai uAgents roles, detailing architecture, flows, security, economics, and roadmap.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






