X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fblinded_path%2Fmod.rs;h=dabfb79c7555f7d053a1857d5925cd1369d2d556;hb=83f0dbc0021335dce183450d7dce7e9f284ff0b6;hp=2cd03b8b8f90e9fc1cd2068c61d4ce3cb8506ddf;hpb=3a643df99797ee2dd5cc19a6f9d090212b1c7963;p=rust-lightning diff --git a/lightning/src/blinded_path/mod.rs b/lightning/src/blinded_path/mod.rs index 2cd03b8b..dabfb79c 100644 --- a/lightning/src/blinded_path/mod.rs +++ b/lightning/src/blinded_path/mod.rs @@ -15,7 +15,7 @@ use bitcoin::hashes::{Hash, HashEngine}; use bitcoin::hashes::sha256::Hash as Sha256; use bitcoin::secp256k1::{self, PublicKey, Scalar, Secp256k1, SecretKey}; -use crate::chain::keysinterface::{EntropySource, NodeSigner, Recipient}; +use crate::sign::{EntropySource, NodeSigner, Recipient}; use crate::onion_message::ControlTlvs; use crate::ln::msgs::DecodeError; use crate::ln::onion_utils; @@ -36,14 +36,14 @@ pub struct BlindedPath { /// message or payment's next hop and forward it along. /// /// [`encrypted_payload`]: BlindedHop::encrypted_payload - pub(crate) introduction_node_id: PublicKey, + pub introduction_node_id: PublicKey, /// Used by the introduction node to decrypt its [`encrypted_payload`] to forward the onion /// message or payment. /// /// [`encrypted_payload`]: BlindedHop::encrypted_payload - pub(crate) blinding_point: PublicKey, + pub blinding_point: PublicKey, /// The hops composing the blinded path. - pub(crate) blinded_hops: Vec, + pub blinded_hops: Vec, } /// Used to construct the blinded hops portion of a blinded path. These hops cannot be identified @@ -51,11 +51,11 @@ pub struct BlindedPath { #[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, + pub blinded_node_id: PublicKey, /// The encrypted payload intended for this hop in a blinded path. // The node sending to this blinded path will later encode this payload into the onion packet for // this hop. - pub(crate) encrypted_payload: Vec, + pub encrypted_payload: Vec, } impl BlindedPath {