projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2280 from TheBlueMatt/2023-05-event-deadlock
[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 3a4c2ae72de6a9a61988edba395e0f137f35572e..97d3a408cdb083603cbebca15fa40f0dda3dd1f0 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;
@@
-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.
/// Onion messages and payments can be sent and received to blinded paths, which serve to hide the
/// identity of the recipient.
-#[derive(Clone, Debug,
Partial
Eq)]
+#[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
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.
/// 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,
Partial
Eq)]
+#[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 struct BlindedHop {
/// The blinded node id of this hop in a blinded path.
pub(crate) blinded_node_id: PublicKey,