Skip to content

RFC: Federation bridge to mergework (RTC ↔ MRWK) #6522

@Scottcjn

Description

@Scottcjn

RFC: Federation bridge to mergework (RTC ↔ MRWK)

Tracking issue for the bridge-federation proposal filed upstream at ramimbo/mergework#571.

Summary

Build a federated 1:1 relayer bridge between RTC (RustChain, real consensus, 8.192M cap) and MRWK (mergework, centralized ledger, maintainer-issued). Trust models are asymmetric — bridge is custody-and-issue on the RTC side (we can't mint), and issuance-side on the MRWK side.

Why mergework

  • Closest sibling system to our bounty program. Live at https://mrwk.ltclab.site, MCP host at https://mcp.mrwk.ltclab.site.
  • Two of their core contributors (ramimbo, sirakinb) are also active RustChain contributors. sirakinb alone has shipped 25 merged security PRs in the past week.
  • Independent codebase (FastAPI + SQLAlchemy vs our Flask + stdlib sqlite3), no code overlap — verified by grep across 21k LOC.
  • Their github:<login> lazy-pay UX is being adopted in Scottcjn/rustchain-claim-portal (MIT, with attribution to ramimbo).

Bridge sketch

RTC → MRWK: User sends N RTC to bridge wallet on Node 1. Relayer observes, waits out 24h void window, then credits N MRWK to user's mrwk1 address.

MRWK → RTC: User burns/locks N MRWK. Relayer observes, transfers N RTC from custody wallet to user's RTC… address.

Critically: RustChain side never mints. The 8.192M cap is consensus-enforced. Bridge inflows lock against a custody wallet; outflows release from it. No new RTC created.

Trust model

Relayer set: leaning 2-of-2 (Scott + ramimbo) for v1, with a path to 2-of-3 once the bridge has a few weeks of clean operation.

Open questions (mirrored from upstream)

  1. Exchange rate — 1:1 to start, or USD-anchored from day one?
  2. MRWK cap (if any)?
  3. Expose bridge ops via MCP from the outset?
  4. Anchor bridge events to Ergo for a mutually-verifiable third leg?

Status

  • Proposal filed at mergework#571
  • ramimbo / sirakinb response
  • Design doc once trust model is settled
  • Phase 0: bridge custody wallet provisioned on both sides
  • Phase 1: one-way POC (RTC → MRWK, lock-and-mirror)
  • Phase 2: reverse direction
  • Phase 3: MCP exposure + Ergo anchoring

Not in scope

  • Cross-chain consensus changes. RustChain consensus does not change.
  • Off-ramps to DEX/CEX.
  • Bridging to anything other than mergework in this RFC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions