lightning-bolt12
BOLT12 offers: reusable invoices, blinded paths, recurring payments, multi-asset (Taproot Assets layered). Replaces BOLT11 for many use cases. USE WHEN: implementing/integrating offers, designing recurring payments, evaluating BOLT11 vs BOLT12 trade-offs.
What this skill does
# BOLT12 Offers BOLT12 is a flexible payment protocol that addresses BOLT11's limitations: - BOLT11 invoices are **single-use** and **expire**. - BOLT11 reveals destination pubkey. - BOLT11 has no built-in support for recurring payments or refunds. BOLT12 offers a static, reusable identifier (the "offer") that lets payers fetch a fresh invoice each payment via Lightning's onion message system. ## Three message types 1. **Offer** (`lno1...`) — long-lived, signed by recipient. Encodes: - Description, amount (or "any"), expiry (or none). - Issuer pubkey (potentially blinded). - Allowed currencies / quantities. 2. **Invoice request** (`lnr1...`) — payer sends via onion message, asks for an invoice for this offer. 3. **Invoice** (`lni1...`) — receiver responds with one-time invoice. Standard payment proceeds. ## Bech32 encoding All three types use the BOLT11-style bech32 encoding with `lno1`, `lnr1`, `lni1` prefixes (no chain prefix; chain encoded in TLV). ## TLV-only Unlike BOLT11's tag/data tuples, BOLT12 uses pure TLV everywhere. Future-proof; new fields don't break old parsers. ## Blinded paths Offers can include **blinded paths** — partial routes that hide the recipient's node id. The offer is signed by an "introduction node" + blinded route data; recipient is anonymous to the payer. ## Recurring payments Offers can specify recurrence: ``` quantity_min: 1, quantity_max: 100 recurrence: monthly for 12 months ``` Same offer used for subscription: payer fetches a fresh invoice each month. ## Multi-asset (Taproot Assets layered) BOLT12 + Taproot Assets together enable invoices priced in non-BTC assets routed over LN. Recipient gets BTC amounts; payer pays in asset terms; intermediate hops handle conversion. ## Use cases vs BOLT11 | Use case | BOLT11 | BOLT12 | |----------|--------|--------| | One-time payment with known amount | yes | yes | | Static "donate to me" QR code | hacky (LNURL-pay) | native | | Recurring subscription | manual | native | | Refund flow | no | yes | | Hidden destination | no | yes (blinded paths) | | Multi-asset | no (need TAP/RGB) | yes | ## Implementation status (late 2025) | Implementation | Send | Receive | Recurring | |----------------|------|---------|-----------| | CLN | yes | yes | yes | | LDK | yes | yes | partial | | LND | partial | partial | no | | Eclair | yes | yes | partial | | phoenixd | yes (receive especially) | yes | partial | ## Common bugs - Treating `lno1...` as a single-use invoice → it's not, can be reused. - Failing to fetch invoice via onion message → expecting BOLT11 flow. - Caching invoice from offer → invoices are one-shot; fetch fresh each payment. - Missing onion-message support (`option_onion_messages` feature bit) → can't fetch invoice request response. ## See also - [bolts/SKILL.md](../bolts/SKILL.md) - [onion/SKILL.md](../onion/SKILL.md) - [lnurl/SKILL.md](../lnurl/SKILL.md) - [../../l2/taproot-assets/SKILL.md](../../l2/taproot-assets/SKILL.md)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.