fn dummy_initial_dkg_transcript(
        committee: Vec<NodeId>,
        tag: NiDkgTag,
    ) -> InitialNiDkgTranscriptRecord {
        let threshold = committee.len() as u32 / 3 + 1;
        let transcript =
            NiDkgTranscript::dummy_transcript_for_tests_with_params(committee, tag, threshold, 0);
        InitialNiDkgTranscriptRecord {
            id: Some(transcript.dkg_id.into()),
            threshold: transcript.threshold.get().get(),
            committee: transcript
                .committee
                .iter()
                .map(|(_, c)| c.get().to_vec())
                .collect(),
            registry_version: 1,
            internal_csp_transcript: serde_cbor::to_vec(&transcript.internal_csp_transcript)
                .unwrap(),
        }
    }
/// Creates a Protobuf `InitialNiDkgTranscriptRecord`. Used in the test
/// below.
Creates a Protobuf `InitialNiDkgTranscriptRecord`. Used in the test
below.
Creates a Protobuf ` InitialNiDkgTranscriptRecord ` . Used in the test below .
fn dummy_initial_dkg_transcript(
        committee: Vec<NodeId>,
        tag: NiDkgTag,
    ) -> InitialNiDkgTranscriptRecord {
        let threshold = committee.len() as u32 / 3 + 1;
        let transcript =
            NiDkgTranscript::dummy_transcript_for_tests_with_params(committee, tag, threshold, 0);
        InitialNiDkgTranscriptRecord {
            id: Some(transcript.dkg_id.into()),
            threshold: transcript.threshold.get().get(),
            committee: transcript
                .committee
                .iter()
                .map(|(_, c)| c.get().to_vec())
                .collect(),
            registry_version: 1,
            internal_csp_transcript: serde_cbor::to_vec(&transcript.internal_csp_transcript)
                .unwrap(),
        }
    }
fn dummy_initial_dkg_transcript ( committee : Vec < NodeId > , tag : NiDkgTag , ) -> InitialNiDkgTranscriptRecord { let threshold = committee . len ( ) as u32 / 3 + 1 ; let transcript = NiDkgTranscript :: dummy_transcript_for_tests_with_params ( committee , tag , threshold , 0 ) ; InitialNiDkgTranscriptRecord { id : Some ( transcript . dkg_id . into ( ) ) , threshold : transcript . threshold . get ( ) . get ( ) , committee : transcript . committee . iter ( ) . map ( | ( _ , c ) | c . get ( ) . to_vec ( ) ) . collect ( ) , registry_version : 1 , internal_csp_transcript : serde_cbor :: to_vec ( & transcript . internal_csp_transcript ) . unwrap ( ) , } }
Creates a Protobuf `InitialNiDkgTranscriptRecord`.
Creates a Protobuf ` InitialNiDkgTranscriptRecord ` .
committee
Vec<NodeId>
tag
NiDkgTag
committee
Vec<NodeId>
tag
NiDkgTag