hopr_crypto_packet::packet

Function packet_length

Source
pub const fn packet_length<S: SphinxSuite>(
    max_hops: usize,
    additional_data_relayer_len: usize,
    additional_data_last_hop_len: usize,
) -> usize
Expand description

Determines the total length (header + payload) of the packet given the header information.