Assign the public key on the client socket with Socket.curveServerKey. The server does not need to know its own public key. Key distribution is not handled by the CURVE security mechanism.
Returns { publicKey: string; secretKey: string; }
An object with a publicKey and a secretKey property, each being a 40 character Z85-encoded string.
Returns a new random key pair to be used with the CURVE security mechanism.
To correctly connect two sockets with this mechanism: