Skip to content

Commit

Permalink
Account for BOLT12 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Sep 11, 2023
1 parent 2db9c6e commit f1db58d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ where
LdkEvent::DiscardFunding { .. } => {}
LdkEvent::HTLCIntercepted { .. } => {}
LdkEvent::BumpTransaction(_) => {}
LdkEvent::InvoiceRequestFailed { .. } => {}
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,18 @@ where
fn sign_gossip_message(&self, msg: UnsignedGossipMessage<'_>) -> Result<Signature, ()> {
self.inner.sign_gossip_message(msg)
}

fn sign_bolt12_invoice(
&self, invoice: &lightning::offers::invoice::UnsignedBolt12Invoice,
) -> Result<bitcoin::secp256k1::schnorr::Signature, ()> {
self.inner.sign_bolt12_invoice(invoice)
}

fn sign_bolt12_invoice_request(
&self, invoice_request: &lightning::offers::invoice_request::UnsignedInvoiceRequest,
) -> Result<bitcoin::secp256k1::schnorr::Signature, ()> {
self.inner.sign_bolt12_invoice_request(invoice_request)
}
}

impl<D, L: Deref> EntropySource for WalletKeysManager<D, L>
Expand Down

0 comments on commit f1db58d

Please sign in to comment.