Struct lightning::blinded_path::BlindedHop
source · pub struct BlindedHop {
pub blinded_node_id: PublicKey,
pub encrypted_payload: Vec<u8>,
}
Expand description
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.
Fields§
§blinded_node_id: PublicKey
The blinded node id of this hop in a BlindedPath
.
encrypted_payload: Vec<u8>
The encrypted payload intended for this hop in a BlindedPath
.
Trait Implementations§
source§impl Clone for BlindedHop
impl Clone for BlindedHop
source§fn clone(&self) -> BlindedHop
fn clone(&self) -> BlindedHop
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlindedHop
impl Debug for BlindedHop
source§impl Hash for BlindedHop
impl Hash for BlindedHop
source§impl PartialEq for BlindedHop
impl PartialEq for BlindedHop
source§fn eq(&self, other: &BlindedHop) -> bool
fn eq(&self, other: &BlindedHop) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Readable for BlindedHop
impl Readable for BlindedHop
source§impl Writeable for BlindedHop
impl Writeable for BlindedHop
impl Eq for BlindedHop
impl StructuralEq for BlindedHop
impl StructuralPartialEq for BlindedHop
Auto Trait Implementations§
impl RefUnwindSafe for BlindedHop
impl Send for BlindedHop
impl Sync for BlindedHop
impl Unpin for BlindedHop
impl UnwindSafe for BlindedHop
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more