Implementation Tracking: Recurrence Support for BOLT12 Offers

未關閉
#4,600 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
18/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
rust

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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
主要語言
Rust
星號
1.4k
分支
482
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

lightningdevkit/rust-lightning 的其他 Issue

查看 lightningdevkit/rust-lightning 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。