pub fn responder(
        mut handshake: KKHandshakeActOne,
    ) -> Result<(KKHandshakeActTwo, KKMessageActTwo), Error> {
        let mut msg = [0u8; KK_MSG_2_SIZE];
        handshake.state.write_message(&[], &mut msg).map_err(|e| {
            Error::Noise(format!("Responder failed to write second message: {:?}", e))
        })?;

        Ok((
            KKHandshakeActTwo {
                state: handshake.state,
            },
            KKMessageActTwo(msg),
        ))
    }
/// Start the second act of the handshake as a responder (write e, ee, se)
Start the second act of the handshake as a responder (write e, ee, se)
Start the second act of the handshake as a responder ( write e ee se )
pub fn responder(
        mut handshake: KKHandshakeActOne,
    ) -> Result<(KKHandshakeActTwo, KKMessageActTwo), Error> {
        let mut msg = [0u8; KK_MSG_2_SIZE];
        handshake.state.write_message(&[], &mut msg).map_err(|e| {
            Error::Noise(format!("Responder failed to write second message: {:?}", e))
        })?;
        Ok((
            KKHandshakeActTwo {
                state: handshake.state,
            },
            KKMessageActTwo(msg),
        ))
    }
pub fn responder ( mut handshake : KKHandshakeActOne , ) -> Result < ( KKHandshakeActTwo , KKMessageActTwo ) , Error > { let mut msg = [ 0u8 ; KK_MSG_2_SIZE ] ; handshake . state . write_message ( & [ ] , & mut msg ) . map_err ( | e | { Error :: Noise ( format ! ( " " e ) ) } ) ? ; Ok ( ( KKHandshakeActTwo { state : handshake . state , } , KKMessageActTwo ( msg ) , ) ) }
Start the second act of the handshake as a responder (write e, ee, se)
Start the second act of the handshake as a responder ( write e ee se )
handshake
KKHandshakeActOne
handshake
KKHandshakeActOne