identity_storage/storage/
mod.rsmod error;
#[macro_use]
mod jwk_document_ext;
#[cfg(feature = "jpt-bbs-plus")]
mod jwp_document_ext;
mod signature_options;
#[cfg(feature = "jpt-bbs-plus")]
mod timeframe_revocation_ext;
#[cfg(feature = "storage-signer")]
mod storage_signer;
#[cfg(all(test, feature = "memstore"))]
pub(crate) mod tests;
pub use error::*;
pub use jwk_document_ext::*;
#[cfg(feature = "jpt-bbs-plus")]
pub use jwp_document_ext::*;
pub use signature_options::*;
#[cfg(feature = "storage-signer")]
pub use storage_signer::*;
#[cfg(feature = "jpt-bbs-plus")]
pub use timeframe_revocation_ext::*;
pub struct Storage<K, I> {
key_storage: K,
key_id_storage: I,
}
impl<K, I> Storage<K, I> {
pub fn new(key_storage: K, key_id_storage: I) -> Self {
Self {
key_storage,
key_id_storage,
}
}
pub fn key_storage(&self) -> &K {
&self.key_storage
}
pub fn key_id_storage(&self) -> &I {
&self.key_id_storage
}
}