connection handshake - SkycoinWikis/dmsg GitHub Wiki
HOME » SOFTWARE » DMSG » CONNECTION HANDSHAKE
Connection Handshake
A Connection refers to the line of communication between a dmsg.Client and dmsg.Server.
To set up a dmsg Connection, dmsg.Client dials a TCP connection to the dmsg.Server and then they perform a handshake via the noise protocol using the XK handshake pattern (with the dmsg.Client as the initiator).
Note that dmsg.Client always initiates the dmsg connection, and it is a given that a dmsg.Client always knows the public key that identifies the dmsg.Server that it wishes to connect with.