]> git.bitcoin.ninja Git - rust-lightning/commit
Use PublicKey values in construct_keys_callback
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 15 Aug 2024 22:56:17 +0000 (17:56 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 20 Aug 2024 21:35:40 +0000 (16:35 -0500)
commit4922548bf2d925fb30d123174a0276c1cd21b300
tree1e36e3b1f51c8a4fa14a4a4ba175dadf73f3bdd9
parent8d22f997407f0cf65442ee29369b01d5974513b6
Use PublicKey values in construct_keys_callback

Instead of accepting iterators yielding PublicKey by reference in
utils::construct_keys_callback, take iterators yielding values since
these implement Copy and need to be copied anyway. This will help avoid
a situation when padding where both a reference and mutable reference
are needed.
lightning/src/blinded_path/message.rs
lightning/src/blinded_path/payment.rs
lightning/src/blinded_path/utils.rs
lightning/src/onion_message/messenger.rs