fluence_identity/
lib.rs

1/*
2 * Copyright 2020 Fluence Labs Limited
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#![recursion_limit = "512"]
18#![warn(rust_2018_idioms)]
19#![deny(
20    dead_code,
21    nonstandard_style,
22    unused_imports,
23    unused_mut,
24    unused_variables,
25    unused_unsafe,
26    unreachable_patterns
27)]
28
29mod secp256k1;
30mod ed25519;
31#[cfg(not(target_arch = "wasm32"))]
32mod rsa;
33pub mod key_pair;
34pub mod error;
35pub mod public_key;
36pub mod signature;
37
38pub use key_pair::KeyPair;
39pub use key_pair::KeyFormat;
40pub use crate::public_key::PublicKey;
41pub use crate::signature::Signature;