Commit d6dd3c5
committed
Introduce recurrence fields in Offer (BOLT12 PoC)
This commit begins the introduction of BOLT12 recurrence support in LDK.
It adds the core recurrence-related fields to `Offer`, enabling
subscription-style and periodic payments as described in the draft spec.
Since this is a PoC, the focus is on establishing the data model and
documenting the intended semantics. Where the spec is ambiguous or
redundant, accompanying comments note possible simplifications or
improvements.
This lays the foundation for the following commits, which will implement
invoice-request parsing, payee-side validation, and period/paywindow
handling.
Spec reference:
https://github.com/rustyrussell/bolts/blob/guilt/offers-recurrence/12-offer-encoding.md#tlv-fields-for-offers1 parent fe5d942 commit d6dd3c5
File tree
6 files changed
+419
-0
lines changed- lightning/src/offers
6 files changed
+419
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1987 | 1987 | | |
1988 | 1988 | | |
1989 | 1989 | | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
1990 | 1995 | | |
1991 | 1996 | | |
1992 | 1997 | | |
| |||
2090 | 2095 | | |
2091 | 2096 | | |
2092 | 2097 | | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
2093 | 2103 | | |
2094 | 2104 | | |
2095 | 2105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1647 | 1647 | | |
1648 | 1648 | | |
1649 | 1649 | | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
1650 | 1655 | | |
1651 | 1656 | | |
1652 | 1657 | | |
| |||
0 commit comments