[][src]Function ssb_handshake::server

pub async fn server<S>(
    stream: S,
    net_key: NetworkKey,
    pk: PublicKey,
    sk: SecretKey
) -> Result<HandshakeKeys, HandshakeError> where
    S: AsyncRead + AsyncWrite + Unpin

Perform the server side of the handshake using the given AsyncRead + AsyncWrite stream.