Struct p2p::RendezvousInfo
[−]
[src]
pub struct RendezvousInfo { pub udp: Vec<SocketAddr>, pub tcp: Option<SocketAddr>, pub enc_pk: [u8; 32], }
A rendezvous packet.
This is supposed to be exchanged out of band between the peers to allow them to hole-punch to each other.
Fields
udp: Vec<SocketAddr>
UDP addresses in order
tcp: Option<SocketAddr>
TCP addresses in order
enc_pk: [u8; 32]
Encrypting Asymmetric PublicKey. Peer will use our public key to encrypt and their secret key to authenticate the message. We will use our secret key to decrypt and peer public key to validate authenticity of the message.