projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
InvoiceRequest metadata and payer id derivation
[rust-lightning]
/
lightning
/
src
/
offers
/
payer.rs
diff --git
a/lightning/src/offers/payer.rs
b/lightning/src/offers/payer.rs
index e389a8f6d5d5daf36dd8e8c3b259c59438472b95..7609c4666197ce3c91f685811b12ca0bc34f718a 100644
(file)
--- a/
lightning/src/offers/payer.rs
+++ b/
lightning/src/offers/payer.rs
@@
-9,6
+9,7
@@
//! Data structures and encoding for `invoice_request_metadata` records.
//! Data structures and encoding for `invoice_request_metadata` records.
+use crate::offers::signer::Metadata;
use crate::util::ser::WithoutLength;
use crate::prelude::*;
use crate::util::ser::WithoutLength;
use crate::prelude::*;
@@
-18,7
+19,8
@@
use crate::prelude::*;
///
/// [`InvoiceRequest::payer_id`]: crate::offers::invoice_request::InvoiceRequest::payer_id
#[derive(Clone, Debug)]
///
/// [`InvoiceRequest::payer_id`]: crate::offers::invoice_request::InvoiceRequest::payer_id
#[derive(Clone, Debug)]
-pub(super) struct PayerContents(pub Vec<u8>);
+#[cfg_attr(test, derive(PartialEq))]
+pub(super) struct PayerContents(pub Metadata);
tlv_stream!(PayerTlvStream, PayerTlvStreamRef, 0..1, {
(0, metadata: (Vec<u8>, WithoutLength)),
tlv_stream!(PayerTlvStream, PayerTlvStreamRef, 0..1, {
(0, metadata: (Vec<u8>, WithoutLength)),