pub fn new_with_os_rng(
        node_secret_key_store: S,
        canister_secret_key_store: C,
        metrics: Arc<CryptoMetrics>,
        logger: ReplicaLogger,
    ) -> Self {
        let csprng = OsRng::default();
        let csprng = CspRwLock::new_for_rng(csprng, Arc::clone(&metrics));
        LocalCspVault {
            csprng,
            node_secret_key_store: CspRwLock::new_for_sks(
                node_secret_key_store,
                Arc::clone(&metrics),
            ),
            canister_secret_key_store: CspRwLock::new_for_csks(canister_secret_key_store, metrics),
            logger,
        }
    }
/// Creates a local CSP vault setting the `csprng` to use the OS Rng.
Creates a local CSP vault setting the `csprng` to use the OS Rng.
Creates a local CSP vault setting the ` csprng ` to use the OS Rng .
pub fn new_with_os_rng(
        node_secret_key_store: S,
        canister_secret_key_store: C,
        metrics: Arc<CryptoMetrics>,
        logger: ReplicaLogger,
    ) -> Self {
        let csprng = OsRng::default();
        let csprng = CspRwLock::new_for_rng(csprng, Arc::clone(&metrics));
        LocalCspVault {
            csprng,
            node_secret_key_store: CspRwLock::new_for_sks(
                node_secret_key_store,
                Arc::clone(&metrics),
            ),
            canister_secret_key_store: CspRwLock::new_for_csks(canister_secret_key_store, metrics),
            logger,
        }
    }
pub fn new_with_os_rng ( node_secret_key_store : S , canister_secret_key_store : C , metrics : Arc < CryptoMetrics > , logger : ReplicaLogger , ) -> Self { let csprng = OsRng :: default ( ) ; let csprng = CspRwLock :: new_for_rng ( csprng , Arc :: clone ( & metrics ) ) ; LocalCspVault { csprng , node_secret_key_store : CspRwLock :: new_for_sks ( node_secret_key_store , Arc :: clone ( & metrics ) , ) , canister_secret_key_store : CspRwLock :: new_for_csks ( canister_secret_key_store , metrics ) , logger , } }
Creates a local CSP vault setting the `csprng` to use the OS Rng.
Creates a local CSP vault setting the ` csprng ` to use the OS Rng .
node_secret_key_store
S
canister_secret_key_store
C
metrics
Arc<CryptoMetrics>
logger
ReplicaLogger
node_secret_key_store
S
canister_secret_key_store
C
metrics
Arc<CryptoMetrics>
logger
ReplicaLogger