]> git.bitcoin.ninja Git - rust-lightning/commit
Provide the signer with a full `RawBolt11Invoice` to sign
authorMatt Corallo <git@bluematt.me>
Fri, 9 Aug 2024 02:45:55 +0000 (02:45 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Aug 2024 12:55:19 +0000 (12:55 +0000)
commit9c93bd56c25976ede81ffc44bc83e8b3adffc294
tree182d64d463e9c377c4dc44f1327dcd586751ec45
parenta741a57249086d83812237ae8dc68c5d2ef6b725
Provide the signer with a full `RawBolt11Invoice` to sign

Now that the `lightning` crate depends on the `lightning-invoice`
crate, there's no reason to have the `sign_invoice` method take raw
base32 field elements as we can now give it a real
`RawBolt11Invoice`, which we do here.

This simplifies the interface and avoids a
serialization-deserialization roundtrip when signing invoices in a
validating signer.

FIxes #3227
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
fuzz/src/onion_message.rs
lightning/src/ln/invoice_utils.rs
lightning/src/sign/mod.rs
lightning/src/util/invoice.rs [deleted file]
lightning/src/util/mod.rs
lightning/src/util/test_utils.rs