hopr_crypto_sphinx::routing

Function header_length

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

Returns the size of the packet header given the information about the number of hops and additional relayer info.