@@ -206,6 +206,7 @@ impl SigningPubkeyStrategy for ExplicitSigningPubkey {}
206
206
impl SigningPubkeyStrategy for DerivedSigningPubkey { }
207
207
208
208
macro_rules! invoice_explicit_signing_pubkey_builder_methods { ( $self: ident, $self_type: ty) => {
209
+ #[ cfg_attr( c_bindings, allow( dead_code) ) ]
209
210
pub ( super ) fn for_offer(
210
211
invoice_request: & ' a InvoiceRequest , payment_paths: Vec <( BlindedPayInfo , BlindedPath ) >,
211
212
created_at: Duration , payment_hash: PaymentHash
@@ -222,6 +223,7 @@ macro_rules! invoice_explicit_signing_pubkey_builder_methods { ($self: ident, $s
222
223
Self :: new( & invoice_request. bytes, contents, ExplicitSigningPubkey { } )
223
224
}
224
225
226
+ #[ cfg_attr( c_bindings, allow( dead_code) ) ]
225
227
pub ( super ) fn for_refund(
226
228
refund: & ' a Refund , payment_paths: Vec <( BlindedPayInfo , BlindedPath ) >, created_at: Duration ,
227
229
payment_hash: PaymentHash , signing_pubkey: PublicKey
@@ -263,6 +265,7 @@ macro_rules! invoice_explicit_signing_pubkey_builder_methods { ($self: ident, $s
263
265
} }
264
266
265
267
macro_rules! invoice_derived_signing_pubkey_builder_methods { ( $self: ident, $self_type: ty) => {
268
+ #[ cfg_attr( c_bindings, allow( dead_code) ) ]
266
269
pub ( super ) fn for_offer_using_keys(
267
270
invoice_request: & ' a InvoiceRequest , payment_paths: Vec <( BlindedPayInfo , BlindedPath ) >,
268
271
created_at: Duration , payment_hash: PaymentHash , keys: KeyPair
@@ -279,6 +282,7 @@ macro_rules! invoice_derived_signing_pubkey_builder_methods { ($self: ident, $se
279
282
Self :: new( & invoice_request. bytes, contents, DerivedSigningPubkey ( keys) )
280
283
}
281
284
285
+ #[ cfg_attr( c_bindings, allow( dead_code) ) ]
282
286
pub ( super ) fn for_refund_using_keys(
283
287
refund: & ' a Refund , payment_paths: Vec <( BlindedPayInfo , BlindedPath ) >, created_at: Duration ,
284
288
payment_hash: PaymentHash , keys: KeyPair ,
@@ -347,6 +351,7 @@ macro_rules! invoice_builder_methods { (
347
351
}
348
352
}
349
353
354
+ #[ cfg_attr( c_bindings, allow( dead_code) ) ]
350
355
fn fields(
351
356
payment_paths: Vec <( BlindedPayInfo , BlindedPath ) >, created_at: Duration ,
352
357
payment_hash: PaymentHash , amount_msats: u64 , signing_pubkey: PublicKey
@@ -357,6 +362,7 @@ macro_rules! invoice_builder_methods { (
357
362
}
358
363
}
359
364
365
+ #[ cfg_attr( c_bindings, allow( dead_code) ) ]
360
366
fn new(
361
367
invreq_bytes: & ' a Vec <u8 >, contents: InvoiceContents , signing_pubkey_strategy: $type_param
362
368
) -> Result <Self , Bolt12SemanticError > {
0 commit comments