use blueprint_keystore::Keystore;
pub trait KeystoreContext {
fn keystore(&self) -> Keystore;
}
#[cfg(feature = "std")]
impl KeystoreContext for blueprint_runner::config::BlueprintEnvironment {
fn keystore(&self) -> Keystore {
let config = blueprint_keystore::KeystoreConfig::new().fs_root(self.keystore_uri.clone());
Keystore::new(config).expect("Failed to create keystore")
}
}