Stateless verification of Invoice for Refund
[rust-lightning] / lightning / src / offers / invoice.rs
index f5a613aca6510ac5418f8f5c685c7256e2ef7d23..57d37a17b8726c75729e4ff915780cee65853ae5 100644 (file)
@@ -535,7 +535,9 @@ impl InvoiceContents {
                        InvoiceContents::ForOffer { invoice_request, .. } => {
                                invoice_request.verify(tlv_stream, key, secp_ctx)
                        },
-                       _ => todo!(),
+                       InvoiceContents::ForRefund { refund, .. } => {
+                               refund.verify(tlv_stream, key, secp_ctx)
+                       },
                }
        }