[−][src]Function ssb_handshake::client
pub async fn client<S>(
stream: S,
net_key: NetworkKey,
pk: PublicKey,
sk: SecretKey,
server_pk: PublicKey
) -> Result<HandshakeKeys, HandshakeError> where
S: AsyncRead + AsyncWrite + Unpin,
Perform the client side of the handshake using the given AsyncRead + AsyncWrite
stream.