]> git.bitcoin.ninja Git - rust-lightning/commit
Pass Nonce directly to RefundBuilder
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 12 Jul 2024 22:26:30 +0000 (17:26 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Jul 2024 16:34:04 +0000 (11:34 -0500)
commit114954cbace0b26bc99205c493ce53dc9bf42183
treedbb6f35e91d8d58aeac19a0bf865dc82bb757858
parentfd596c31b504adfddf8478ef59451a62a3d2c597
Pass Nonce directly to RefundBuilder

When using RefundBuilder::deriving_payer_id, the nonce generated needs
to be the same one included in any RefundBuilder::paths. This is because
the nonce is used along with the refund TLVs to derive a payer id and
will soon be used to authenticate any invoices.
lightning/src/ln/channelmanager.rs
lightning/src/offers/refund.rs