Invoice request raw byte encoding and decoding
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 23 Aug 2022 22:31:46 +0000 (17:31 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 9 Dec 2022 14:53:46 +0000 (08:53 -0600)
commit59a7bd29fe02f10f6fcdc192c7994629675c7a30
tree7ce9f21549faa23fbd0504b855f2e39ddf0e152f
parenta7adc7602a7865b677095ef2cdb80d290dff1170
Invoice request raw byte encoding and decoding

When reading an offer, an `invoice_request` message is sent over the
wire. Implement Writeable for encoding the message and TryFrom for
decoding it by defining in terms of TLV streams. These streams represent
content for the payer metadata (0), reflected `offer` (1-79),
`invoice_request` (80-159), and signature (240).
lightning/src/offers/invoice_request.rs
lightning/src/offers/merkle.rs
lightning/src/offers/offer.rs
lightning/src/offers/parse.rs
lightning/src/offers/payer.rs
lightning/src/util/ser_macros.rs