RFC: Federation bridge to mergework (RTC ↔ MRWK)

Open
#6,522 7 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 10 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
8/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
fastapi, flask, python, sqlalchemy, sqlite

Research direction

This is a tracking RFC that names no source files, tests or entry points. Start with the upstream proposal at ramimbo/mergework#571 and the four open questions in the issue, since the trust model and exchange rate are still undecided. Done here means a design doc has been agreed with the maintainers, not a code change.

Written by the indexing model from the issue text.

Description

pinned triaged

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.
Dominant language
Python
Stars
850
Forks
589
Avg merge
11d 7h
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Scottcjn/Rustchain

All issues in Scottcjn/Rustchain

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.