webvh-watcher 0.10.1

WebVH Watcher, read-only DID mirror service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The watcher's secrets — its DID's keys, and the credential for its VTA
//! context — through the shared secret-store backends.

pub use did_hosting_common::server::secret_store::*;

use crate::config::AppConfig;
use crate::error::AppError;

/// Create a secret store backend based on the application configuration.
pub fn create_secret_store(config: &AppConfig) -> Result<Box<dyn SecretStore>, AppError> {
    did_hosting_common::server::secret_store::create_secret_store(
        &config.secrets,
        &config.config_path,
    )
}