pub fn of(csprng: R, secret_key_store: S) -> Self {
        let node_public_keys = Default::default();
        let public_key_data = PublicKeyData::new(node_public_keys);
        let metrics = Arc::new(CryptoMetrics::none());
        Csp {
            csprng: CspRwLock::new_for_rng(csprng.clone(), metrics),
            public_key_data,
            csp_vault: Arc::new(LocalCspVault::new_for_test(csprng, secret_key_store)),
            logger: no_op_logger(),
            _marker: std::marker::PhantomData,
        }
    }
/// Creates a crypto service provider for testing.
///
/// Note: This MUST NOT be used in production as the secrecy of the secret
/// key store and the canister secret key store is not guaranteed.
Creates a crypto service provider for testing.
Note: This MUST NOT be used in production as the secrecy of the secret
key store and the canister secret key store is not guaranteed.
Creates a crypto service provider for testing . Note : This MUST NOT be used in production as the secrecy of the secret key store and the canister secret key store is not guaranteed .
pub fn of(csprng: R, secret_key_store: S) -> Self {
        let node_public_keys = Default::default();
        let public_key_data = PublicKeyData::new(node_public_keys);
        let metrics = Arc::new(CryptoMetrics::none());
        Csp {
            csprng: CspRwLock::new_for_rng(csprng.clone(), metrics),
            public_key_data,
            csp_vault: Arc::new(LocalCspVault::new_for_test(csprng, secret_key_store)),
            logger: no_op_logger(),
            _marker: std::marker::PhantomData,
        }
    }
pub fn of ( csprng : R , secret_key_store : S ) -> Self { let node_public_keys = Default :: default ( ) ; let public_key_data = PublicKeyData :: new ( node_public_keys ) ; let metrics = Arc :: new ( CryptoMetrics :: none ( ) ) ; Csp { csprng : CspRwLock :: new_for_rng ( csprng . clone ( ) , metrics ) , public_key_data , csp_vault : Arc :: new ( LocalCspVault :: new_for_test ( csprng , secret_key_store ) ) , logger : no_op_logger ( ) , _marker : std :: marker :: PhantomData , } }
Creates a crypto service provider for testing.
Creates a crypto service provider for testing .
csprng
R
secret_key_store
S
csprng
R
secret_key_store
S