@@ -221,9 +221,7 @@ macro_rules! invoice_explicit_signing_pubkey_builder_methods { ($self: ident, $s
221
221
}
222
222
} }
223
223
224
- macro_rules! invoice_derived_signing_pubkey_builder_methods { (
225
- $self: ident, $self_type: ty, $secp_context: ty
226
- ) => {
224
+ macro_rules! invoice_derived_signing_pubkey_builder_methods { ( $self: ident, $self_type: ty) => {
227
225
pub ( super ) fn for_offer_using_keys(
228
226
invoice_request: & ' a InvoiceRequest , payment_paths: Vec <( BlindedPayInfo , BlindedPath ) >,
229
227
created_at: Duration , payment_hash: PaymentHash , keys: KeyPair
@@ -258,7 +256,7 @@ macro_rules! invoice_derived_signing_pubkey_builder_methods { (
258
256
259
257
/// Builds a signed [`Bolt12Invoice`] after checking for valid semantics.
260
258
pub fn build_and_sign<T : secp256k1:: Signing >(
261
- $self: $self_type, secp_ctx: & Secp256k1 <$secp_context >
259
+ $self: $self_type, secp_ctx: & Secp256k1 <T >
262
260
) -> Result <Bolt12Invoice , Bolt12SemanticError > {
263
261
#[ cfg( feature = "std" ) ] {
264
262
if $self. invoice. is_offer_or_refund_expired( ) {
@@ -388,7 +386,7 @@ impl<'a> InvoiceBuilder<'a, ExplicitSigningPubkey> {
388
386
}
389
387
390
388
impl < ' a > InvoiceBuilder < ' a , DerivedSigningPubkey > {
391
- invoice_derived_signing_pubkey_builder_methods ! ( self , Self , T ) ;
389
+ invoice_derived_signing_pubkey_builder_methods ! ( self , Self ) ;
392
390
}
393
391
394
392
impl < ' a , S : SigningPubkeyStrategy > InvoiceBuilder < ' a , S > {
0 commit comments