Implementation Tracking: Recurrence Support for BOLT12 Offers

Offen
#4,600 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
18/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
rust
Bereich
backend, blockchain

Rechercherichtung

This is an implementation-tracking issue, not a single starter task. Read the spec PR (lightning/bolts#1240) and the LDK design thread (#4476) first, then pick one unchecked rust-lightning item (BOLT12 wire fields on Offers, Invoice Requests, or Invoices). Work lives in the rust-lightning crate that already handles BOLT12 messages; LDK Node owns public APIs and outbound state. Done means the chosen checklist item plus interoperability tests, not the whole recurrence feature.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

This issue tracks the implementation progress for Recurrence.

Spec PR: https://github.com/lightning/bolts/pull/1240
LDK design discussion: #4476

Summary of Design Discussion

Based on the design discussion, Recurrence support will be split across rust-lightning and LDK Node.

rust-lightning will handle the protocol-facing pieces: wire data, a minimal API surface, and the handling logic that does not require access to saved recurrence state.

LDK Node will own the public-facing APIs and outbound recurrence state tracking.

Implementation Plan

rust-lightning
  • Introduce recurrence wire fields for BOLT12 messages:
    • Offers
    • Invoice Requests
    • Invoices
  • Introduce builder support for creating an InvoiceRequest with an explicit signing pubkey
  • Add handler logic:
    • Payee-side InvoiceRequest handling using the recurrence token
    • Payer-side Invoice handling using the BlindedPath MessageContext
LDK Node
  • Set up outbound recurrence state tracking, update, and expiry logic
  • Introduce recurrence offer builder
  • Introduce APIs to pay, re-pay, and cancel recurrence for recurring offers
Spec
  • Run interoperability tests
  • Review and merge spec
Vorherrschende Sprache
Rust
Sterne
1.4k
Forks
482
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus lightningdevkit/rust-lightning

Alle Issues in lightningdevkit/rust-lightning

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.