]> git.bitcoin.ninja Git - rust-lightning/commit
refactor to remove message_digest
authorOrbital <orbitalturtle@protonmail.com>
Fri, 3 Nov 2023 00:50:20 +0000 (19:50 -0500)
committerOrbital <orbitalturtle@protonmail.com>
Tue, 7 Nov 2023 03:29:50 +0000 (21:29 -0600)
commit38dfbf99db1bdb40bcaa3bbd7388cd7ed8e734b7
treee9b79fbb78489074a2e435fae9d4cd8c4560a1e1
parentb3e7aac4a708ab7c41b7ece7839fd18fe66c1e0a
refactor to remove message_digest

We change the Bolt12Invoice struct to carry a tagged hash. Because
message_digest is then only used in one place, we can inline it in
the TaggedHash constructor.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/merkle.rs