X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fonion_message%2Futils.rs;h=ae9e0a7f6fee3e23b27c1aa9b1c63c51d1ea26cf;hb=93641540229317b881f86b7a02eba632fd64eb0d;hp=52cadf6c9dbf5db5e3a5747729dde7fbeadf8d93;hpb=65d71cdc6be11b5f46b55f8507b414255c07249e;p=rust-lightning diff --git a/lightning/src/onion_message/utils.rs b/lightning/src/onion_message/utils.rs index 52cadf6c..ae9e0a7f 100644 --- a/lightning/src/onion_message/utils.rs +++ b/lightning/src/onion_message/utils.rs @@ -15,11 +15,11 @@ use bitcoin::hashes::sha256::Hash as Sha256; use bitcoin::secp256k1::{self, PublicKey, Secp256k1, SecretKey, Scalar}; use bitcoin::secp256k1::ecdh::SharedSecret; -use ln::onion_utils; -use super::blinded_route::BlindedRoute; +use crate::ln::onion_utils; +use super::blinded_path::BlindedPath; use super::messenger::Destination; -use prelude::*; +use crate::prelude::*; // TODO: DRY with onion_utils::construct_onion_keys_callback #[inline] @@ -87,7 +87,7 @@ pub(super) fn construct_keys_callback { build_keys!(pk, false, None); }, - Destination::BlindedRoute(BlindedRoute { blinded_hops, .. }) => { + Destination::BlindedPath(BlindedPath { blinded_hops, .. }) => { for hop in blinded_hops { build_keys_in_loop!(hop.blinded_node_id, true, Some(hop.encrypted_payload)); }