Support signing BOLT 12 invoices in NodeSigner
[rust-lightning] / lightning / src / offers / invoice.rs
index 745b389fa4673d34141aa8d42a017594e64c8cdc..75a844cd117abe5d956ddcbdf7efde5bff44a769 100644 (file)
@@ -397,6 +397,11 @@ impl UnsignedBolt12Invoice {
                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 using the given function.
        ///
        /// Note: The hash computation may have included unknown, odd TLV records.