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]
Destination::Node(pk) => {
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));
}