]> git.bitcoin.ninja Git - rust-lightning/commit
Extract keys from Offer::metadata to sign Invoice
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 5 Apr 2023 05:04:41 +0000 (00:04 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 20 Apr 2023 02:31:07 +0000 (21:31 -0500)
commite1a6bc3cadb8c89ba38afb5846fb80f349d99449
treed32e02876a31cc3d3f43a9a5cf6f90408a04d093
parent259aa9aac37097c462a25cc39e83ebe2b86ac4bb
Extract keys from Offer::metadata to sign Invoice

For offers where the signing pubkey is derived, the keys need to be
extracted from the Offer::metadata in order to sign an invoice.
Parameterize InvoiceBuilder such that a build_and_sign method is
available for this situation.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/offer.rs
lightning/src/offers/parse.rs
lightning/src/offers/refund.rs
lightning/src/offers/signer.rs