/// Verify a dealing using public information
///
/// Verify that the dealing has the expected type of ciphertext
/// and commitment (depending on the type of dealing)
///
/// When CRP-1158 is completed this will also verify the zero
/// knowledge proofs
Verify a dealing using public information
Verify that the dealing has the expected type of ciphertext
and commitment (depending on the type of dealing)

When CRP-1158 is completed this will also verify the zero
knowledge proofs
Verify a dealing using public information Verify that the dealing has the expected type of ciphertext and commitment ( depending on the type of dealing ) When CRP - 1158 is completed this will also verify the zero knowledge proofs
pub fn publicly_verify_dealing(
    algorithm_id: AlgorithmId,
    dealing: &IDkgDealingInternal,
    transcript_type: &IDkgTranscriptOperationInternal,
    reconstruction_threshold: NumberOfNodes,
    dealer_index: NodeIndex,
    number_of_receivers: NumberOfNodes,
) -> Result<(), IDkgVerifyDealingInternalError> {
    let curve = match algorithm_id {
        AlgorithmId::ThresholdEcdsaSecp256k1 => Ok(EccCurveType::K256),
        _ => Err(IDkgVerifyDealingInternalError::UnsupportedAlgorithm),
    }?;
    dealing
        .publicly_verify(
            curve,
            transcript_type,
            reconstruction_threshold,
            dealer_index,
            number_of_receivers,
        )
        .map_err(|e| e.into())
}
pub fn publicly_verify_dealing ( algorithm_id : AlgorithmId , dealing : & IDkgDealingInternal , transcript_type : & IDkgTranscriptOperationInternal , reconstruction_threshold : NumberOfNodes , dealer_index : NodeIndex , number_of_receivers : NumberOfNodes , ) -> Result < ( ) , IDkgVerifyDealingInternalError > { let curve = match algorithm_id { AlgorithmId :: ThresholdEcdsaSecp256k1 => Ok ( EccCurveType :: K256 ) , _ => Err ( IDkgVerifyDealingInternalError :: UnsupportedAlgorithm ) , } ? ; dealing . publicly_verify ( curve , transcript_type , reconstruction_threshold , dealer_index , number_of_receivers , ) . map_err ( | e | e . into ( ) ) }
Verify a dealing using public information
Verify that the dealing has the expected type of ciphertext
and commitment (depending on the type of dealing)
Verify a dealing using public information Verify that the dealing has the expected type of ciphertext and commitment ( depending on the type of dealing )
algorithm_id
AlgorithmId
dealing
&IDkgDealingInternal
transcript_type
&IDkgTranscriptOperationInternal
reconstruction_threshold
NumberOfNodes
dealer_index
NodeIndex
number_of_receivers
NumberOfNodes