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
//! Tendermint Key Management System

#![deny(unsafe_code)]
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]

#[cfg(not(any(feature = "softsign", feature = "yubihsm", feature = "ledger")))]
compile_error!(
    "please enable one of the following backends with cargo's --features argument: \
     yubihsm, ledgertm, softsign (e.g. --features=yubihsm)"
);

pub mod application;
pub mod chain;
pub mod client;
pub mod commands;
pub mod config;
pub mod connection;
pub mod error;
pub mod key_utils;
pub mod keyring;
pub mod prelude;
pub mod rpc;
pub mod session;

#[cfg(feature = "tx-signer")]
pub mod tx_signer;

#[cfg(feature = "yubihsm")]
pub mod yubihsm;

pub use crate::application::KmsApplication;

// Map type used within this application
use std::collections::BTreeMap as Map;