package peer import ( "net/netip" ) type route struct { Mediator bool // Route is via a mediator. SignPubKey []byte EncSharedKey []byte // Shared key for encoding / decoding packets. Addr netip.AddrPort // Address to send to. ViaIP byte // If != 0, this is a forwarding address. } type Nonce struct { Counter uint64 SourceIP byte ViaIP byte DestIP byte StreamID byte // The stream, see STREAM_* constants PacketType byte // The packet type. See PACKET_* constants. }