]> git.bitcoin.ninja Git - rust-lightning/commit
Pass bytes instead of TlvStream to verify
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 16 Sep 2024 21:31:01 +0000 (16:31 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 5 Nov 2024 00:00:22 +0000 (18:00 -0600)
commit63c687f0d9e6480877d7decedf8c977df41de3dd
tree1196280afe4f34ccab2317af564e44f2875df88f
parent1eb5baa00c081a0afe1b87f6c3d58bbb080ceba6
Pass bytes instead of TlvStream to verify

Passing bytes directly to InvoiceContents::verify improves readability
as then a TlvStream for each TLV record range can be created from the
bytes instead of needing to clone the TlvStream upfront. In an upcoming
commit, the experimental TLV record range will utilize this.
lightning/src/offers/invoice.rs