// 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 transcript(
    csp_transcript: CspDkgTranscript,
) -> Result<CLibTranscriptBytes, dkg_errors::MalformedDataError> {
    if let CspDkgTranscript::Secp256k1(transcript) = csp_transcript {
        Ok(transcript)
    } else {
        Err(dkg_errors::MalformedDataError {
            algorithm: AlgorithmId::Secp256k1,
            internal_error: format!("Incorrect type: {:?}", csp_transcript),
            data: None,
        })
    }
}
pub fn transcript ( csp_transcript : CspDkgTranscript , ) -> Result < CLibTranscriptBytes , dkg_errors :: MalformedDataError > { if let CspDkgTranscript :: Secp256k1 ( transcript ) = csp_transcript { Ok ( transcript ) } else { Err ( dkg_errors :: MalformedDataError { algorithm : AlgorithmId :: Secp256k1 , internal_error : format ! ( " " csp_transcript ) , data : None , } ) } }
There is currently only one version of DKG.
There is currently only one version of DKG .
csp_transcript
CspDkgTranscript