|
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 | //!
|
@@ -243,8 +243,7 @@ macro_rules! invoice_explicit_signing_pubkey_builder_methods { ($self: ident, $s
|
243 | 243 | Self::new(&refund.bytes, contents, ExplicitSigningPubkey {})
|
244 | 244 | }
|
245 | 245 |
|
246 |
| - /// Builds an unsigned [`Bolt12Invoice`] after checking for valid semantics. It can be signed by |
247 |
| - /// [`UnsignedBolt12Invoice::sign`]. |
| 246 | + /// Builds an unsigned [`Bolt12Invoice`] after checking for valid semantics. |
248 | 247 | pub fn build($self: $self_type) -> Result<UnsignedBolt12Invoice, Bolt12SemanticError> {
|
249 | 248 | #[cfg(feature = "std")] {
|
250 | 249 | if $self.invoice.is_offer_or_refund_expired() {
|
@@ -579,7 +578,9 @@ macro_rules! unsigned_invoice_sign_method { ($self: ident, $self_type: ty $(, $s
|
579 | 578 | /// Signs the [`TaggedHash`] of the invoice using the given function.
|
580 | 579 | ///
|
581 | 580 | /// Note: The hash computation may have included unknown, odd TLV records.
|
582 |
| - pub fn sign<F: SignBolt12InvoiceFn>( |
| 581 | + /// |
| 582 | + /// This is not exported to bindings users as functions aren't currently mapped. |
| 583 | + pub(crate) fn sign<F: SignBolt12InvoiceFn>( |
583 | 584 | $($self_mut)* $self: $self_type, sign: F
|
584 | 585 | ) -> Result<Bolt12Invoice, SignError> {
|
585 | 586 | let pubkey = $self.contents.fields().signing_pubkey;
|
|
0 commit comments