InvoiceRequest metadata and payer id derivation
[rust-lightning] / lightning / src / offers / signer.rs
index 2ee3d13afbb9c173c1c9bf03654d392e7fa5f450..a8ea941e3be834e3504af6c23643db5219e11e33 100644 (file)
@@ -96,6 +96,12 @@ impl Metadata {
        }
 }
 
+impl Default for Metadata {
+       fn default() -> Self {
+               Metadata::Bytes(vec![])
+       }
+}
+
 impl fmt::Debug for Metadata {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
                match self {