/// Constructs the KK Noise channel from a final stage KK handshake
Constructs the KK Noise channel from a final stage KK handshake
Constructs the KK Noise channel from a final stage KK handshake
pub fn from_handshake(state: KKHandshakeActTwo) -> Result<KKChannel, Error> {
        let transport_state = state
            .state
            .into_transport_mode()
            .map_err(|e| Error::Noise(format!("Failed to enter transport mode: {:?}", e)))?;
        Ok(KKChannel { transport_state })
    }
pub fn from_handshake ( state : KKHandshakeActTwo ) -> Result < KKChannel , Error > { let transport_state = state . state . into_transport_mode ( ) . map_err ( | e | Error :: Noise ( format ! ( " " e ) ) ) ? ; Ok ( KKChannel { transport_state } ) }
Constructs the KK Noise channel from a final stage KK handshake
Constructs the KK Noise channel from a final stage KK handshake
state
KKHandshakeActTwo