Support signing BOLT 12 invoices in NodeSigner
[rust-lightning] / lightning / src / offers / invoice_request.rs
index 41c86171b1bf31be953cdb1d9288ced33fe03413..03af068d1d61912738f23ac71ff3c91079161ffe 100644 (file)
@@ -372,6 +372,11 @@ impl UnsignedInvoiceRequest {
                Self { bytes, contents, tagged_hash }
        }
 
+       /// Returns the [`TaggedHash`] of the invoice to sign.
+       pub fn tagged_hash(&self) -> &TaggedHash {
+               &self.tagged_hash
+       }
+
        /// Signs the [`TaggedHash`] of the invoice request using the given function.
        ///
        /// Note: The hash computation may have included unknown, odd TLV records.