/// Creates a new store that keeps the data for the
/// given maximum number of DKG IDs.
///
/// # Panics
/// If `max_num_of_dkg_ids` is smaller than 1.
Creates a new store that keeps the data for the
given maximum number of DKG IDs.
Creates a new store that keeps the data for the given maximum number of DKG IDs .
fn new_with_max_size(max_num_of_dkg_ids: usize) -> Self {
        assert!(
            max_num_of_dkg_ids >= 1,
            "The maximum size must be at least 1"
        );
        ThresholdSigDataStoreImpl {
            store: BTreeMap::new(),
            max_num_of_dkg_ids,
            dkg_id_insertion_order: VecDeque::with_capacity(max_num_of_dkg_ids),
        }
    }
fn new_with_max_size ( max_num_of_dkg_ids : usize ) -> Self { assert ! ( max_num_of_dkg_ids 1 " " ) ; ThresholdSigDataStoreImpl { store : BTreeMap :: new ( ) , max_num_of_dkg_ids , dkg_id_insertion_order : VecDeque :: with_capacity ( max_num_of_dkg_ids ) , } }
Creates a new store that keeps the data for the
given maximum number of DKG IDs.
Creates a new store that keeps the data for the given maximum number of DKG IDs .
max_num_of_dkg_ids
usize
panics
If `max_num_of_dkg_ids` is smaller than 1.
If ` max_num_of_dkg_ids ` is smaller than 1 .