pub struct RoutingInfo {
pub routing_information: Box<[u8]>,
pub mac: [u8; 32],
}
Expand description
Carries routing information for the mixnet packet.
Fields§
§routing_information: Box<[u8]>
§mac: [u8; 32]
Implementations§
Source§impl RoutingInfo
impl RoutingInfo
Sourcepub fn new<S: SphinxSuite>(
max_hops: usize,
path: &[<S::P as Keypair>::Public],
secrets: &[SharedSecret],
additional_data_relayer_len: usize,
additional_data_relayer: &[&[u8]],
additional_data_last_hop: Option<&[u8]>,
) -> Self
pub fn new<S: SphinxSuite>( max_hops: usize, path: &[<S::P as Keypair>::Public], secrets: &[SharedSecret], additional_data_relayer_len: usize, additional_data_relayer: &[&[u8]], additional_data_last_hop: Option<&[u8]>, ) -> Self
Creates the routing information of the mixnet packet
§Arguments
max_hops
maximal number of hopspath
IDs of the nodes along the pathsecrets
shared secrets with the nodes along the pathadditional_data_relayer_len
length of each additional data for all relayersadditional_data_relayer
additional data for each relayeradditional_data_last_hop
additional data for the final recipient
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoutingInfo
impl RefUnwindSafe for RoutingInfo
impl Send for RoutingInfo
impl Sync for RoutingInfo
impl Unpin for RoutingInfo
impl UnwindSafe for RoutingInfo
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