Repository navigation
Add bLIP-74: out of band payloads attached to payments over blinded paths - #76
Open
ZZiigguurraatt wants to merge 1 commit into
Open
ZZiigguurraatt wants to merge 1 commit into
ZZiigguurraatt wants to merge 1 commit into
Conversation
…aths bLIP-74 attaches an opaque, optional out of band payload to a payment by sending it on a standalone onion message while the HTLC stays plain (no custom records), so it is valid over a BOLT 4 blinded path. The payment is coordinated by a BOLT 11 invoice, either one-time (hash-bearing) or reusable (hash-less). How it works: - The message is paired to the HTLC by payment_hash (or SHA256(preimage) when the sender chose it); the HTLC is tied back to its invoice by the path_id in the blinded path. - The receiver holds settlement until it has both the HTLC and the message, so settlement signals delivery. With a sender-chosen preimage it cannot settle without the message, which also makes a reusable hash-less invoice possible. - The receiver emits nothing before payment, so it cannot be used as a reflector. Advantages: - Carries an arbitrary and larger payload: a separate onion message, up to the larger BOLT 4 size, not data squeezed into the HTLC onion. - Enriches an ordinary blinded invoice payment with sender data (a comment, an order/reference ID, or a higher-level protocol's first message) that keysend cannot deliver over a blinded path. - Extends BOLT 11 into a reusable, offer-like endpoint: a hash-less invoice payable any number of times with a sender-chosen preimage, i.e. offer semantics in the ubiquitous BOLT 11 container with no BOLT 12 dependency. - No BOLT consensus change: the HTLC stays plain and the data rides existing onion messages, so forwarding nodes are untouched. - Reuses existing primitives (plain HTLCs, onion messages, hold invoices) instead of a new offers/invoice system. - Needs no always-online static-invoice server (unlike BOLT 12 async payments) and no web server (unlike LNURL). - Completes a reusable-endpoint payment with no pre-payment invoice fetch, so lower latency than a BOLT 12 offer. - Emits nothing before payment from any party, so it is reflection-safe even against BOLT 12 async payments, whose static-invoice server still reflects. Registers the reserved values in bLIP-2 — feature bits 264/265 (oob_payment_payloads) and 266/267 (oob_reusable), and onion-message TLV 65552 (oob_payment_message) — and adds the README index row.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bLIP-74 attaches an opaque, optional out of band payload to a payment by sending it on a standalone onion message while the HTLC stays plain (no custom records), so it is valid over a BOLT 4 blinded path. The payment is coordinated by a BOLT 11 invoice, either one-time (hash-bearing) or reusable (hash-less).
How it works:
Advantages:
Registers the reserved values in bLIP-2 — feature bits 264/265 (oob_payment_payloads) and 266/267 (oob_reusable), and onion-message TLV 65552 (oob_payment_message) — and adds the README index row.