static fun init(keyPair: KeyPair, remotePublicKey: PublicKey, ephemeralKeyPair: KeyPair, initiatorNonce: Bytes32): Bytes
(source)
Creates a handshake initiation message using ephemeral keys and a random nonce.
remotePublicKey
- the peer public key
ephemeralKeyPair
- our ephemeral key pair for this connection
initiatorNonce
- our random nonce
Return
the bytes of a handshake initiation message for a given peer