1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#![no_std]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(
html_root_url = "https://docs.rs/signatory/0.23.0",
html_logo_url = "https://raw.githubusercontent.com/iqlusioninc/crates/main/signatory/img/signatory-rustacean.png"
)]
#![forbid(unsafe_code, clippy::unwrap_used)]
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
#[cfg(feature = "ecdsa")]
#[cfg_attr(docsrs, doc(cfg(feature = "ecdsa")))]
pub mod ecdsa;
#[cfg(feature = "ed25519")]
#[cfg_attr(docsrs, doc(cfg(feature = "ed25519")))]
pub mod ed25519;
mod algorithm;
mod error;
mod key;
pub use self::{
algorithm::Algorithm,
error::{Error, Result},
key::{
handle::KeyHandle,
info::KeyInfo,
name::KeyName,
ring::{KeyRing, LoadPkcs8},
store::GeneratePkcs8,
},
};
pub use pkcs8;
pub use signature;
#[cfg(feature = "std")]
pub use key::store::fs::FsKeyStore;
pub type Map<K, V> = alloc::collections::BTreeMap<K, V>;