pub fn update_for_config(&mut self, ni_dkg_config: &NiDkgConfig) {
        let new_node_ids = self.added_nodes(ni_dkg_config);
        for node_id in new_node_ids {
            self.add_crypto_component_and_registry_entry(ni_dkg_config, node_id);
        }
        self.registry.update_to_latest_version();
        self.cleanup_unused_nodes(ni_dkg_config);
    }
/// Ensures that all node IDs appearing in the given `ni_dkg_config`
/// have (1) a crypto component and (2) a DKG dealing encryption
/// public key in the registry. If registry entries need to be
/// added, they are added for the config's registry version.
///
/// Additionally, for all node IDs that no longer appear in the
/// `ni_dkg_config`, the crypto components are removed.
Ensures that all node IDs appearing in the given `ni_dkg_config`
have (1) a crypto component and (2) a DKG dealing encryption
public key in the registry. If registry entries need to be
added, they are added for the config's registry version.

Additionally, for all node IDs that no longer appear in the
`ni_dkg_config`, the crypto components are removed.
Ensures that all node IDs appearing in the given ` ni_dkg_config ` have ( 1 ) a crypto component and ( 2 ) a DKG dealing encryption public key in the registry . If registry entries need to be added they are added for the config ' s registry version . Additionally for all node IDs that no longer appear in the ` ni_dkg_config ` the crypto components are removed .
pub fn update_for_config(&mut self, ni_dkg_config: &NiDkgConfig) {
        let new_node_ids = self.added_nodes(ni_dkg_config);
        for node_id in new_node_ids {
            self.add_crypto_component_and_registry_entry(ni_dkg_config, node_id);
        }
        self.registry.update_to_latest_version();
        self.cleanup_unused_nodes(ni_dkg_config);
    }
pub fn update_for_config ( & mut self , ni_dkg_config : & NiDkgConfig ) { let new_node_ids = self . added_nodes ( ni_dkg_config ) ; for node_id in new_node_ids { self . add_crypto_component_and_registry_entry ( ni_dkg_config , node_id ) ; } self . registry . update_to_latest_version ( ) ; self . cleanup_unused_nodes ( ni_dkg_config ) ; }
Ensures that all node IDs appearing in the given `ni_dkg_config`
have (1) a crypto component and (2) a DKG dealing encryption
public key in the registry.
Ensures that all node IDs appearing in the given ` ni_dkg_config ` have ( 1 ) a crypto component and ( 2 ) a DKG dealing encryption public key in the registry .
&mut self
ni_dkg_config
&NiDkgConfig
&mut self
ni_dkg_config
&NiDkgConfig