/// Creates a crypto component using a fake `node_id`.
Creates a crypto component using a fake `node_id`.
Creates a crypto component using a fake ` node_id ` .
pub fn new_with_fake_node_id(
        config: &CryptoConfig,
        registry_client: Arc<dyn RegistryClient>,
        node_id: NodeId,
        logger: ReplicaLogger,
    ) -> Self {
        let metrics = Arc::new(CryptoMetrics::none());
        CryptoComponentFatClient {
            lockable_threshold_sig_data_store: LockableThresholdSigDataStore::new(),
            csp: Csp::new(config, None, Arc::clone(&metrics)),
            registry_client,
            node_id,
            logger,
            metrics,
        }
    }
pub fn new_with_fake_node_id ( config : & CryptoConfig , registry_client : Arc < dyn RegistryClient > , node_id : NodeId , logger : ReplicaLogger , ) -> Self { let metrics = Arc :: new ( CryptoMetrics :: none ( ) ) ; CryptoComponentFatClient { lockable_threshold_sig_data_store : LockableThresholdSigDataStore :: new ( ) , csp : Csp :: new ( config , None , Arc :: clone ( & metrics ) ) , registry_client , node_id , logger , metrics , } }
Creates a crypto component using a fake `node_id`.
Creates a crypto component using a fake ` node_id ` .
config
&CryptoConfig
registry_client
Arc<dyn RegistryClient>
node_id
NodeId
logger
ReplicaLogger