RFC: Federation bridge to mergework (RTC ↔ MRWK)

Aperta
#6,522 7 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 10 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
8/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
fastapi, flask, python, sqlalchemy, sqlite

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Python
Stelle
850
Fork
589
Merge medio
11g 7h
PR unite (30g)
29

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Scottcjn/Rustchain

Tutte le issue di Scottcjn/Rustchain

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.