projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Stateless verification of Invoice for Refund
[rust-lightning]
/
lightning
/
src
/
offers
/
invoice.rs
diff --git
a/lightning/src/offers/invoice.rs
b/lightning/src/offers/invoice.rs
index f5a613aca6510ac5418f8f5c685c7256e2ef7d23..57d37a17b8726c75729e4ff915780cee65853ae5 100644
(file)
--- a/
lightning/src/offers/invoice.rs
+++ b/
lightning/src/offers/invoice.rs
@@
-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)
+ },
}
}