gadget-sdk 0.6.2

SDK for building Blueprints and gadget on Tangle Network
Documentation
1
2
3
4
5
6
7
use crate::keystore::backend::GenericKeyStore;

/// `KeystoreContext` trait provides access to the generic keystore from the context.
pub trait KeystoreContext<RwLock: lock_api::RawRwLock> {
    /// Get the keystore client from the context.
    fn keystore(&self) -> color_eyre::Result<GenericKeyStore<RwLock>, crate::config::Error>;
}