identity_storage/key_storage/
mod.rs

1// Copyright 2020-2025 IOTA Stiftung, Fondazione LINKS
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;
16#[cfg(feature = "pqc")]
17mod jwk_storage_pqc;
18mod key_id;
19mod key_storage_error;
20mod key_type;
21#[cfg(feature = "keytool")]
22mod keytool;
23#[cfg(feature = "memstore")]
24mod memstore;
25
26#[cfg(test)]
27pub(crate) mod tests;
28
29/// All modules that should be made available to end-users.
30pub mod public_modules {
31  pub use super::jwk_gen_output::*;
32  pub use super::jwk_storage::*;
33  #[cfg(feature = "jpt-bbs-plus")]
34  pub use super::jwk_storage_bbs_plus_ext::*;
35  #[cfg(feature = "pqc")]
36  pub use super::jwk_storage_pqc::*;
37  pub use super::key_id::*;
38  pub use super::key_storage_error::*;
39  pub use super::key_type::*;
40  #[cfg(feature = "memstore")]
41  pub use super::memstore::*;
42}
43
44pub use public_modules::*;