]> git.bitcoin.ninja Git - rust-lightning/commit
Pass Nonce directly to OfferBuilder
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 19 Jun 2024 17:42:16 +0000 (12:42 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Jul 2024 16:34:02 +0000 (11:34 -0500)
commit219691f9ef7b709fbb128cd39e9559ee02b50e18
treea613ce8eac4749cb164c5a02bbc0c6351a44531e
parentd7aeaa0aadaece9921b9317a661bbeb4f2580cb6
Pass Nonce directly to OfferBuilder

When using OfferBuilder::deriving_signing_pubkey, the nonce generated
needs to be the same one included in any OfferBuilder::paths. This is
because the nonce is used along with the offer TLVs to derive a signing
pubkey and will soon be elided from the metadata entirely.
lightning/src/ln/channelmanager.rs
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/offer.rs
lightning/src/offers/static_invoice.rs