]> 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, 12 Nov 2024 15:53:12 +0000 (15:53 +0000)
commite447b4913688bbb49b2dcfe4c9b14b0b7fdc59fc
tree40f44ca4c762690bd035674df0d06c66566c6d05
parent46df35b0ff466a33c901d1ab5a77dff6facfca2e
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.

We also take this opportunity to remove constant parameters from
the `outbound_payment.rs` interface to `channelmanager.rs`
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/parse.rs
lightning/src/offers/refund.rs