breez_sdk_liquid::lightning_125::blinded_path

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>

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.

Implementors§

§

impl NodeIdLookUp for EmptyNodeIdLookUp

§

impl<M, T, ES, NS, SP, F, R, L> NodeIdLookUp for ChannelManager<M, T, ES, NS, SP, F, R, L>
where M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Deref, R: Deref, L: Deref, <M as Deref>::Target: Watch<<<SP as Deref>::Target as SignerProvider>::EcdsaSigner>, <T as Deref>::Target: BroadcasterInterface, <ES as Deref>::Target: EntropySource, <NS as Deref>::Target: NodeSigner, <SP as Deref>::Target: SignerProvider, <F as Deref>::Target: FeeEstimator, <R as Deref>::Target: Router, <L as Deref>::Target: Logger,