`crate`-only several BOLT12 methods that require unbounded generics
[rust-lightning] / lightning / src / offers / invoice.rs
index fb47fd8c5f6872b32377c1eb1b5dd68cb86be4f5..afbd82f7432e9a775063680af76bbbbb2adb1b08 100644 (file)
@@ -424,7 +424,7 @@ impl UnsignedBolt12Invoice {
        /// Note: The hash computation may have included unknown, odd TLV records.
        ///
        /// This is not exported to bindings users as functions aren't currently mapped.
-       pub fn sign<F, E>(mut self, sign: F) -> Result<Bolt12Invoice, SignError<E>>
+       pub(crate) fn sign<F, E>(mut self, sign: F) -> Result<Bolt12Invoice, SignError<E>>
        where
                F: FnOnce(&Self) -> Result<Signature, E>
        {