pub fn new(
        node_id: NodeId,
        consensus_cache: Arc<dyn ConsensusPoolCache>,
        crypto: Arc<dyn ConsensusCrypto>,
        metrics_registry: MetricsRegistry,
        logger: ReplicaLogger,
    ) -> Self {
        let pre_signer = Box::new(EcdsaPreSignerImpl::new(
            node_id,
            consensus_cache.clone(),
            crypto.clone(),
            metrics_registry.clone(),
            logger.clone(),
        ));
        let signer = Box::new(EcdsaSignerImpl::new(
            node_id,
            consensus_cache,
            crypto,
            metrics_registry.clone(),
            logger.clone(),
        ));
        Self {
            pre_signer,
            signer,
            schedule: RoundRobin::default(),
            metrics: EcdsaClientMetrics::new(metrics_registry),
            logger,
        }
    }
/// Builds a new threshold ECDSA component
Builds a new threshold ECDSA component
Builds a new threshold ECDSA component
pub fn new(
        node_id: NodeId,
        consensus_cache: Arc<dyn ConsensusPoolCache>,
        crypto: Arc<dyn ConsensusCrypto>,
        metrics_registry: MetricsRegistry,
        logger: ReplicaLogger,
    ) -> Self {
        let pre_signer = Box::new(EcdsaPreSignerImpl::new(
            node_id,
            consensus_cache.clone(),
            crypto.clone(),
            metrics_registry.clone(),
            logger.clone(),
        ));
        let signer = Box::new(EcdsaSignerImpl::new(
            node_id,
            consensus_cache,
            crypto,
            metrics_registry.clone(),
            logger.clone(),
        ));
        Self {
            pre_signer,
            signer,
            schedule: RoundRobin::default(),
            metrics: EcdsaClientMetrics::new(metrics_registry),
            logger,
        }
    }
pub fn new ( node_id : NodeId , consensus_cache : Arc < dyn ConsensusPoolCache > , crypto : Arc < dyn ConsensusCrypto > , metrics_registry : MetricsRegistry , logger : ReplicaLogger , ) -> Self { let pre_signer = Box :: new ( EcdsaPreSignerImpl :: new ( node_id , consensus_cache . clone ( ) , crypto . clone ( ) , metrics_registry . clone ( ) , logger . clone ( ) , ) ) ; let signer = Box :: new ( EcdsaSignerImpl :: new ( node_id , consensus_cache , crypto , metrics_registry . clone ( ) , logger . clone ( ) , ) ) ; Self { pre_signer , signer , schedule : RoundRobin :: default ( ) , metrics : EcdsaClientMetrics :: new ( metrics_registry ) , logger , } }
Builds a new threshold ECDSA component
Builds a new threshold ECDSA component
node_id
NodeId
consensus_cache
Arc<dyn ConsensusPoolCache>
crypto
Arc<dyn ConsensusCrypto>
metrics_registry
MetricsRegistry
logger
ReplicaLogger
node_id
NodeId
consensus_cache
Arc<dyn ConsensusPoolCache>
crypto
Arc<dyn ConsensusCrypto>
metrics_registry
MetricsRegistry
logger
ReplicaLogger