Function create_surb

Source
pub fn create_surb<S: SphinxSuite, H: SphinxHeaderSpec>(
    shared_keys: SharedKeys<S::E, S::G>,
    path: &[H::KeyId],
    additional_data_relayer: &[H::RelayerData],
    receiver_data: H::PacketReceiverData,
    additional_data_receiver: H::SurbReceiverData,
) -> Result<(SURB<S, H>, ReplyOpener)>
where H::KeyId: Copy,
Expand description

Creates a pair of SURB and ReplyOpener.

The former is sent to the other party, the latter is kept locally.