]> git.bitcoin.ninja Git - rust-lightning/commit
Refund encoding and parsing
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 21 Sep 2022 14:32:23 +0000 (09:32 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 14 Dec 2022 22:20:40 +0000 (16:20 -0600)
commit92a53dd7aaf91d9541d596dd2b8fbc6f3fa77f71
tree936dc618e9713e6d846c3a63057171719ee9c880
parent7e81f8dcb42602295ee41930310d2fb971bab712
Refund encoding and parsing

Define an interface for BOLT 12 refunds (i.e., an `invoice_request`
message without an `offer_node_id`). A refund is more generally an
"offer for money". While it is encoded using the same TLV streams as an
`invoice_request` message, it has different semantics.
lightning/src/offers/invoice_request.rs
lightning/src/offers/mod.rs
lightning/src/offers/parse.rs
lightning/src/offers/refund.rs [new file with mode: 0644]