/// Combine sufficient signature shares into an ECDSA signature
///
/// The signature shares must be verified prior to use, and there must
/// be at least reconstruction_threshold many of them.
Combine sufficient signature shares into an ECDSA signature
The signature shares must be verified prior to use, and there must
be at least reconstruction_threshold many of them.
Combine sufficient signature shares into an ECDSA signature The signature shares must be verified prior to use and there must be at least reconstruction_threshold many of them .
pub fn combine_sig_shares(
    derivation_path: &DerivationPath,
    randomness: Randomness,
    presig_transcript: &IDkgTranscriptInternal,
    reconstruction_threshold: NumberOfNodes,
    sig_shares: &BTreeMap<NodeIndex, ThresholdEcdsaSigShareInternal>,
    algorithm_id: AlgorithmId,
) -> Result<ThresholdEcdsaCombinedSigInternal, ThresholdEcdsaCombineSigSharesInternalError> {
    let curve_type = match algorithm_id {
        AlgorithmId::ThresholdEcdsaSecp256k1 => EccCurveType::K256,
        _ => return Err(ThresholdEcdsaCombineSigSharesInternalError::UnsupportedAlgorithm),
    };
    sign::ThresholdEcdsaCombinedSigInternal::new(
        derivation_path,
        randomness,
        presig_transcript,
        reconstruction_threshold,
        sig_shares,
        curve_type,
    )
    .map_err(|e| e.into())
}
pub fn combine_sig_shares ( derivation_path : & DerivationPath , randomness : Randomness , presig_transcript : & IDkgTranscriptInternal , reconstruction_threshold : NumberOfNodes , sig_shares : & BTreeMap < NodeIndex , ThresholdEcdsaSigShareInternal > , algorithm_id : AlgorithmId , ) -> Result < ThresholdEcdsaCombinedSigInternal , ThresholdEcdsaCombineSigSharesInternalError > { let curve_type = match algorithm_id { AlgorithmId :: ThresholdEcdsaSecp256k1 => EccCurveType :: K256 , _ => return Err ( ThresholdEcdsaCombineSigSharesInternalError :: UnsupportedAlgorithm ) , } ; sign :: ThresholdEcdsaCombinedSigInternal :: new ( derivation_path , randomness , presig_transcript , reconstruction_threshold , sig_shares , curve_type , ) . map_err ( | e | e . into ( ) ) }
Combine sufficient signature shares into an ECDSA signature
The signature shares must be verified prior to use, and there must
be at least reconstruction_threshold many of them.
Combine sufficient signature shares into an ECDSA signature The signature shares must be verified prior to use and there must be at least reconstruction_threshold many of them .
derivation_path
&DerivationPath
randomness
Randomness
presig_transcript
&IDkgTranscriptInternal
reconstruction_threshold
NumberOfNodes
sig_shares
&BTreeMap<NodeIndex, ThresholdEcdsaSigShareInternal>
algorithm_id
AlgorithmId