parity-zcash/src/keys/mod.rs

26 lines
530 B
Rust
Raw Normal View History

2016-08-18 03:56:18 -07:00
mod address;
mod checksum;
pub mod display;
pub mod generator;
pub mod keypair;
mod error;
2016-08-18 03:56:18 -07:00
mod private;
use secp256k1;
2016-08-18 05:39:00 -07:00
use hash::{H160, H256, H520};
2016-08-18 03:56:18 -07:00
pub use self::address::{Type, Address};
pub use self::checksum::checksum;
pub use self::display::DisplayLayout;
pub use self::keypair::KeyPair;
pub use self::error::Error;
2016-08-18 03:56:18 -07:00
pub use self::private::Private;
2016-08-18 05:39:00 -07:00
pub type AddressHash = H160;
pub type Secret = H256;
2016-08-17 06:00:47 -07:00
pub type Public = H520;
lazy_static! {
pub static ref SECP256K1: secp256k1::Secp256k1 = secp256k1::Secp256k1::new();
}