projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Address custom HTLC TLV fixups
[rust-lightning]
/
lightning
/
src
/
blinded_path
/
mod.rs
diff --git
a/lightning/src/blinded_path/mod.rs
b/lightning/src/blinded_path/mod.rs
index 2cd03b8b8f90e9fc1cd2068c61d4ce3cb8506ddf..dabfb79c7555f7d053a1857d5925cd1369d2d556 100644
(file)
--- 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 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;
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
/// 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
/// 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.
/// The hops composing the blinded path.
- pub
(crate)
blinded_hops: Vec<BlindedHop>,
+ pub blinded_hops: Vec<BlindedHop>,
}
/// Used to construct the blinded hops portion of a blinded path. These hops cannot be identified
}
/// 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.
#[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.
/// 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<u8>,
+ pub encrypted_payload: Vec<u8>,
}
impl BlindedPath {
}
impl BlindedPath {