]> git.bitcoin.ninja Git - rust-lightning/commit
Static invoice encoding and parsing
authorValentine Wallace <vwallace@protonmail.com>
Thu, 9 May 2024 18:29:08 +0000 (14:29 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 12 Jun 2024 19:07:48 +0000 (15:07 -0400)
commite3dea2c3c7099c63d569b8912b9633aa733be19a
treefa5eca5ded05e2694d71dd51c4584d294c5a9a34
parent3cfb24d265ecd9a708aed0bb9de665760e16e999
Static invoice encoding and parsing

Define an interface for BOLT 12 static invoice messages. The underlying
format consists of the original bytes and the parsed contents.

The bytes are later needed for serialization. This is because it must
mirror all the offer TLV records, including unknown ones, which aren't
represented in the contents.

Invoices may be created from an offer.
lightning/src/offers/mod.rs
lightning/src/offers/parse.rs
lightning/src/offers/static_invoice.rs [new file with mode: 0644]