pub fn response(
    csp_response: CspResponse,
) -> Result<CLibResponseBytes, dkg_errors::MalformedDataError> {
    if let CspResponse::Secp256k1(response) = csp_response {
        Ok(response)
    } else {
        Err(dkg_errors::MalformedDataError {
            algorithm: AlgorithmId::Secp256k1,
            internal_error: format!("Incorrect type: {:?}", csp_response),
            data: None,
        })
    }
}
// There is currently only one version of DKG.
There is currently only one version of DKG.
There is currently only one version of DKG .
pub fn response(
    csp_response: CspResponse,
) -> Result<CLibResponseBytes, dkg_errors::MalformedDataError> {
    if let CspResponse::Secp256k1(response) = csp_response {
        Ok(response)
    } else {
        Err(dkg_errors::MalformedDataError {
            algorithm: AlgorithmId::Secp256k1,
            internal_error: format!("Incorrect type: {:?}", csp_response),
            data: None,
        })
    }
}
pub fn response ( csp_response : CspResponse , ) -> Result < CLibResponseBytes , dkg_errors :: MalformedDataError > { if let CspResponse :: Secp256k1 ( response ) = csp_response { Ok ( response ) } else { Err ( dkg_errors :: MalformedDataError { algorithm : AlgorithmId :: Secp256k1 , internal_error : format ! ( " " csp_response ) , data : None , } ) } }
There is currently only one version of DKG.
There is currently only one version of DKG .
csp_response
CspResponse
csp_response
CspResponse