identity_storage/key_storage/
mod.rs

1// Copyright 2020-2023 IOTA Stiftung
2// SPDX-License-Identifier: Apache-2.0
3
4//! A Key Storage is used to securely store private keys.
5//!
6//! This module provides the [`JwkStorage`] trait that
7//! abstracts over storages that store JSON Web Keys.
8
9#[cfg(feature = "jpt-bbs-plus")]
10/// BLS12381 utils.
11pub mod bls;
12mod jwk_gen_output;
13mod jwk_storage;
14#[cfg(feature = "jpt-bbs-plus")]
15mod jwk_storage_bbs_plus_ext;
16mod key_id;
17mod key_storage_error;
18mod key_type;
19#[cfg(feature = "keytool")]
20mod keytool;
21#[cfg(feature = "memstore")]
22mod memstore;
23
24#[cfg(test)]
25pub(crate) mod tests;
26
27/// All modules that should be made available to end-users.
28pub mod public_modules {
29  pub use super::jwk_gen_output::*;
30  pub use super::jwk_storage::*;
31  #[cfg(feature = "jpt-bbs-plus")]
32  pub use super::jwk_storage_bbs_plus_ext::*;
33  pub use super::key_id::*;
34  pub use super::key_storage_error::*;
35  pub use super::key_type::*;
36  #[cfg(feature = "memstore")]
37  pub use super::memstore::*;
38}
39
40pub use public_modules::*;