|
16 | 16 | //! The payment recipient must include a [`PaymentHash`], so as to reveal the preimage upon payment |
17 | 17 | //! receipt, and one or more [`BlindedPaymentPath`]s for the payer to use when sending the payment. |
18 | 18 | //! |
19 | | -//! ``` |
| 19 | +//! ```ignore |
20 | 20 | //! extern crate bitcoin; |
21 | 21 | //! extern crate lightning; |
22 | 22 | //! |
@@ -280,8 +280,7 @@ macro_rules! invoice_explicit_signing_pubkey_builder_methods { |
280 | 280 | Self::new(&refund.bytes, contents, ExplicitSigningPubkey {}) |
281 | 281 | } |
282 | 282 |
|
283 | | - /// Builds an unsigned [`Bolt12Invoice`] after checking for valid semantics. It can be signed by |
284 | | - /// [`UnsignedBolt12Invoice::sign`]. |
| 283 | + /// Builds an unsigned [`Bolt12Invoice`] after checking for valid semantics. |
285 | 284 | pub fn build($self: $self_type) -> Result<UnsignedBolt12Invoice, Bolt12SemanticError> { |
286 | 285 | #[cfg(feature = "std")] |
287 | 286 | { |
@@ -671,7 +670,9 @@ macro_rules! unsigned_invoice_sign_method { ($self: ident, $self_type: ty $(, $s |
671 | 670 | /// Signs the [`TaggedHash`] of the invoice using the given function. |
672 | 671 | /// |
673 | 672 | /// Note: The hash computation may have included unknown, odd TLV records. |
674 | | - pub fn sign<F: SignBolt12InvoiceFn>( |
| 673 | + /// |
| 674 | + /// This is not exported to bindings users as functions aren't currently mapped. |
| 675 | + pub(crate) fn sign<F: SignBolt12InvoiceFn>( |
675 | 676 | $($self_mut)* $self: $self_type, sign: F |
676 | 677 | ) -> Result<Bolt12Invoice, SignError> { |
677 | 678 | let pubkey = $self.contents.fields().signing_pubkey; |
|
0 commit comments