Skip to content

impl Deref for EmptyNodeIdLookUp #3058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lightning/src/blinded_path/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub(crate) mod message;
pub(crate) mod utils;

use bitcoin::secp256k1::{self, PublicKey, Secp256k1, SecretKey};
use core::ops::Deref;

use crate::ln::msgs::DecodeError;
use crate::offers::invoice::BlindedPayInfo;
Expand Down Expand Up @@ -100,6 +101,11 @@ impl NodeIdLookUp for EmptyNodeIdLookUp {
}
}

impl Deref for EmptyNodeIdLookUp {
type Target = EmptyNodeIdLookUp;
fn deref(&self) -> &Self { self }
}

/// An encrypted payload and node id corresponding to a hop in a payment or onion message path, to
/// be encoded in the sender's onion packet. These hops cannot be identified by outside observers
/// and thus can be used to hide the identity of the recipient.
Expand Down
Loading