]> git.bitcoin.ninja Git - rust-lightning/commit
Support signing BOLT 12 invoices in NodeSigner
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 27 Feb 2023 18:10:32 +0000 (12:10 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 22 Aug 2023 00:14:29 +0000 (19:14 -0500)
commit39012e35957922eea239c6ed33a6aaf16e7dee9c
tree9848c221b719bb3678ad7aa33876906d1a123421
parent63d0d5583d2b18021434092face066ae92d5ae7b
Support signing BOLT 12 invoices in NodeSigner

BOLT 12 messages need to be signed in the following scenarios:
- constructing an InvoiceRequest after scanning an Offer,
- constructing an Invoice after scanning a Refund, and
- constructing an Invoice when handling an InvoiceRequest.

Extend the NodeSigner trait to support signing BOLT 12 invoices such
that it can be used in the latter contexts. The method could be used
in an OffersMessageHandler.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
fuzz/src/onion_message.rs
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/sign/mod.rs
lightning/src/util/test_utils.rs