]> git.bitcoin.ninja Git - rust-lightning/commit
Add support for storing a source HRN in BOLT 12 `invoice_request`s
authorMatt Corallo <git@bluematt.me>
Sat, 13 Jul 2024 14:04:39 +0000 (14:04 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 8 Oct 2024 19:47:54 +0000 (19:47 +0000)
commita9d9b20b396b71e9dd21e94ba2fd32ff6bf64c7f
tree198bdc50a97e414036722ed5912e0c65b54c3911
parenta262dad63b4964ed2668a0d73df5556d2b8960b3
Add support for storing a source HRN in BOLT 12 `invoice_request`s

When we resolve a Human Readable Name to a BOLT 12 `offer`, we may
end up resolving to a wildcard DNS name covering all possible
`user` parts. In that case, if we just blindly pay the `offer`, the
recipient would have no way to tell which `user` we paid.

Instead, BOLT 12 defines a field to include the HRN resolved in the
`invoice_request`, which we implement here.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/parse.rs
lightning/src/offers/refund.rs