// TODO (CRP-569): add integration test for signing with initial transcript
/// Creates an initial DKG transcript.
///
/// The transcript is created by performing the DKG protocol in a _centralized_
/// manner. This method must only be used for testing purposes since the
/// transcript is generated in a centralized manner.
///
/// # Panics
/// * If the `receiver_keys` don't match the receivers in the
///   `initial_dkg_config`.


The transcript is created by performing the DKG protocol in a _centralized_
manner. This method must only be used for testing purposes since the
transcript is generated in a centralized manner.
The transcript is created by performing the DKG protocol in a _centralized_ manner . This method must only be used for testing purposes since the transcript is generated in a centralized manner .
pub fn initial_dkg_transcript(
    initial_dkg_config: InitialNiDkgConfig,
    receiver_keys: &BTreeMap<NodeId, PublicKeyProto>,
) -> NiDkgTranscript {
    let dkg_config = initial_dkg_config.get();
    ensure_matching_node_ids(dkg_config.receivers(), receiver_keys);
    let dealer = first_dealer(dkg_config);
    let registry = fake_registry_with_encryption_keys(receiver_keys, dkg_config.registry_version());
    let dealer_crypto = TempCryptoComponent::new(Arc::new(registry), dealer);
    transcript_with_single_dealing(dkg_config, dealer_crypto)
}
pub fn initial_dkg_transcript ( initial_dkg_config : InitialNiDkgConfig , receiver_keys : & BTreeMap < NodeId , PublicKeyProto > , ) -> NiDkgTranscript { let dkg_config = initial_dkg_config . get ( ) ; ensure_matching_node_ids ( dkg_config . receivers ( ) , receiver_keys ) ; let dealer = first_dealer ( dkg_config ) ; let registry = fake_registry_with_encryption_keys ( receiver_keys , dkg_config . registry_version ( ) ) ; let dealer_crypto = TempCryptoComponent :: new ( Arc :: new ( registry ) , dealer ) ; transcript_with_single_dealing ( dkg_config , dealer_crypto ) }
TODO (CRP-569): add integration test for signing with initial transcript
Creates an initial DKG transcript.
TODO ( CRP - 569 ) : add integration test for signing with initial transcript Creates an initial DKG transcript .
initial_dkg_config
InitialNiDkgConfig
receiver_keys
&BTreeMap<NodeId, PublicKeyProto>
panics
If the `receiver_keys` don't match the receivers in the
`initial_dkg_config`.
If the ` receiver_keys ` don ' t match the receivers in the ` initial_dkg_config ` .