Trait NodeIdLookUp
pub trait NodeIdLookUp {
// Required method
fn next_node_id(&self, short_channel_id: u64) -> Option<PublicKey>;
}
Expand description
An interface for looking up the node id of a channel counterparty for the purpose of forwarding
an OnionMessage
.
Required Methods§
fn next_node_id(&self, short_channel_id: u64) -> Option<PublicKey>
fn next_node_id(&self, short_channel_id: u64) -> Option<PublicKey>
Returns the node id of the forwarding node’s channel counterparty with short_channel_id
.
Here, the forwarding node is referring to the node of the OnionMessenger
parameterized
by the NodeIdLookUp
and the counterparty to one of that node’s peers.