X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fblinded_path%2Fmod.rs;h=2cd03b8b8f90e9fc1cd2068c61d4ce3cb8506ddf;hb=20cd856aa5d2834a557663ea67ee0139ad522586;hp=3a4c2ae72de6a9a61988edba395e0f137f35572e;hpb=e691e5077dd4d770c948962af177d49819b51be3;p=rust-lightning diff --git a/lightning/src/blinded_path/mod.rs b/lightning/src/blinded_path/mod.rs index 3a4c2ae7..2cd03b8b 100644 --- a/lightning/src/blinded_path/mod.rs +++ b/lightning/src/blinded_path/mod.rs @@ -29,7 +29,7 @@ use crate::prelude::*; /// Onion messages and payments can be sent and received to blinded paths, which serve to hide the /// identity of the recipient. -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, Hash, PartialEq, Eq)] pub struct BlindedPath { /// To send to a blinded path, the sender first finds a route to the unblinded /// `introduction_node_id`, which can unblind its [`encrypted_payload`] to find out the onion @@ -48,7 +48,7 @@ pub struct BlindedPath { /// Used to construct the blinded hops portion of a blinded path. These hops cannot be identified /// by outside observers and thus can be used to hide the identity of the recipient. -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, Hash, PartialEq, Eq)] pub struct BlindedHop { /// The blinded node id of this hop in a blinded path. pub(crate) blinded_node_id: PublicKey,