did-hosting-server 0.9.0

DID Hosting Server, handles management and serving of WebVH Content
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Re-export from did-hosting-common shared server infrastructure
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.
///
/// This is a thin wrapper that delegates to `did-hosting-common`'s implementation
/// with the appropriate config fields.
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,
    )
}