]> git.bitcoin.ninja Git - rust-lightning/commit
Add a construct_keys_callback for blinded paths
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 15 Aug 2024 23:06:46 +0000 (18:06 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 20 Aug 2024 21:35:43 +0000 (16:35 -0500)
commit51d9218f678a2f0887b96a0190aa9d5e0553c0dd
tree518419d6cea3aefacd72032e5eaf71a893b0d6ca
parent4922548bf2d925fb30d123174a0276c1cd21b300
Add a construct_keys_callback for blinded paths

When constructing a BlindedPath, an Option<Destination> parameter to
construct_keys_callback is never passed. Make a separate utility
function that doesn't take this parameter. This allows for using the
build_keys_helper macro with a Iterator yielding items other than
PublicKey.
lightning/src/blinded_path/utils.rs