// You may not use this file except in accordance with one or both of these
// licenses.
-use bitcoin::secp256k1::{Keypair, PublicKey, Secp256k1, SecretKey};
use crate::utils::test_logger;
+use bitcoin::secp256k1::{Keypair, PublicKey, Secp256k1, SecretKey};
use core::convert::TryFrom;
use lightning::offers::invoice_request::UnsignedInvoiceRequest;
use lightning::offers::offer::{Amount, Offer, Quantity};
if let Ok(invoice_request) = build_response(&offer, pubkey) {
invoice_request
- .sign(|message: &UnsignedInvoiceRequest|
+ .sign(|message: &UnsignedInvoiceRequest| {
Ok(secp_ctx.sign_schnorr_no_aux_rand(message.as_ref().as_digest(), &keys))
- )
+ })
.unwrap()
.write(&mut buffer)
.unwrap();
}
fn build_response(
- offer: &Offer, pubkey: PublicKey
+ offer: &Offer, pubkey: PublicKey,
) -> Result<UnsignedInvoiceRequest, Bolt12SemanticError> {
let mut builder = offer.request_invoice(vec![42; 64], pubkey)?;
./bench/benches/bench.rs
./fuzz/src/chanmon_consistency.rs
./fuzz/src/full_stack.rs
-./fuzz/src/offer_deser.rs
./fuzz/src/peer_crypt.rs
./fuzz/src/process_network_graph.rs
./fuzz/src/refund_deser.rs