/// Creates a production-grade local CSP vault.
///
/// The `node_secret_key_store` and the `canister_secret_key_store`
/// must be ProtoSecretKeyStore using distinct protobuf files.
Creates a production-grade local CSP vault.
The `node_secret_key_store` and the `canister_secret_key_store`
must be ProtoSecretKeyStore using distinct protobuf files.
Creates a production - grade local CSP vault . The ` node_secret_key_store ` and the ` canister_secret_key_store ` must be ProtoSecretKeyStore using distinct protobuf files .
pub fn new(
        node_secret_key_store: ProtoSecretKeyStore,
        canister_secret_key_store: ProtoSecretKeyStore,
        metrics: Arc<CryptoMetrics>,
        logger: ReplicaLogger,
    ) -> Self {
        if node_secret_key_store.proto_file_path() == canister_secret_key_store.proto_file_path() {
            panic!("The node secret-key-store and the canister secret-key-store must use different files")
        }
        LocalCspVault::new_with_os_rng(
            node_secret_key_store,
            canister_secret_key_store,
            metrics,
            logger,
        )
    }
pub fn new ( node_secret_key_store : ProtoSecretKeyStore , canister_secret_key_store : ProtoSecretKeyStore , metrics : Arc < CryptoMetrics > , logger : ReplicaLogger , ) -> Self { if node_secret_key_store . proto_file_path ( ) == canister_secret_key_store . proto_file_path ( ) { panic ! ( " " ) } LocalCspVault :: new_with_os_rng ( node_secret_key_store , canister_secret_key_store , metrics , logger , ) }
Creates a production-grade local CSP vault.
Creates a production - grade local CSP vault .
node_secret_key_store
ProtoSecretKeyStore
canister_secret_key_store
ProtoSecretKeyStore
metrics
Arc<CryptoMetrics>
logger
ReplicaLogger