/// Construct the inputs to Ecdsa signature generation.
///
/// This checks that:
/// - The first factor of presig_quadruple.key_times_lambda matches
///   key_transcript. (We assume the presig_quadruple has already been
///   checked during creation).
/// - All transcripts use the same AlgorithmId
/// - All transcripts have the same receiver set (same receiver nodes, and
///   each node at the same index)
Construct the inputs to Ecdsa signature generation.
This checks that:
The first factor of presig_quadruple.key_times_lambda matches
key_transcript. (We assume the presig_quadruple has already been
checked during creation).
All transcripts use the same AlgorithmId
All transcripts have the same receiver set (same receiver nodes, and
each node at the same index)
Construct the inputs to Ecdsa signature generation . This checks that : The first factor of presig_quadruple . key_times_lambda matches key_transcript . ( We assume the presig_quadruple has already been checked during creation ) . All transcripts use the same AlgorithmId All transcripts have the same receiver set ( same receiver nodes and each node at the same index )
pub fn new(
        derivation_path: &ExtendedDerivationPath,
        hashed_message: &[u8],
        nonce: Randomness,
        presig_quadruple: PreSignatureQuadruple,
        key_transcript: IDkgTranscript,
    ) -> Result<Self, error::ThresholdEcdsaSigInputsCreationError> {
        Self::check_algorithm_ids(&presig_quadruple, &key_transcript)?;
        Self::check_receivers_are_equal(&presig_quadruple, &key_transcript)?;
        Self::check_consistency_of_transcripts(&presig_quadruple, &key_transcript)?;
        Ok(Self {
            derivation_path: derivation_path.clone(),
            hashed_message: hashed_message.to_vec(),
            nonce,
            presig_quadruple,
            key_transcript,
        })
    }
pub fn new ( derivation_path : & ExtendedDerivationPath , hashed_message : & [ u8 ] , nonce : Randomness , presig_quadruple : PreSignatureQuadruple , key_transcript : IDkgTranscript , ) -> Result < Self , error :: ThresholdEcdsaSigInputsCreationError > { Self :: check_algorithm_ids ( & presig_quadruple , & key_transcript ) ? ; Self :: check_receivers_are_equal ( & presig_quadruple , & key_transcript ) ? ; Self :: check_consistency_of_transcripts ( & presig_quadruple , & key_transcript ) ? ; Ok ( Self { derivation_path : derivation_path . clone ( ) , hashed_message : hashed_message . to_vec ( ) , nonce , presig_quadruple , key_transcript , } ) }
Construct the inputs to Ecdsa signature generation.
Construct the inputs to Ecdsa signature generation .
derivation_path
&ExtendedDerivationPath
hashed_message
&[u8]
nonce
Randomness
presig_quadruple
PreSignatureQuadruple
key_transcript
IDkgTranscript