]> git.bitcoin.ninja Git - rust-lightning/commit
Rename `{Signed,}RawInvoice::hash` to avoid naming collisions
authorMatt Corallo <git@bluematt.me>
Sat, 10 Sep 2022 20:31:12 +0000 (20:31 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 12 Sep 2022 16:26:58 +0000 (16:26 +0000)
commit8b3516208a6465ae8a5f1a987a5d1fd2585527a7
tree11185849a5b85c7e437e1e2ef0119977bc3a1a88
parent15a5966fa24286ca805aea3a97e606b10c71543d
Rename `{Signed,}RawInvoice::hash` to avoid naming collisions

Now that `{Signed,}RawInvoice` implement the std `Hash` trait,
having a method called `hash` is ambiguous.

Instead, we rename the `hash` methods `signed_hash` to make it
clear that the hash is the one used for the purpose of signing the
invoice.
lightning-invoice/src/lib.rs