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
#![deny(missing_docs)]

//! This crate is a work in progress.

mod address;
mod condition;
mod signer;
mod spends;
mod ssl;
mod utils;
mod wallet;

pub use address::*;
pub use condition::*;
pub use signer::*;
pub use spends::*;
pub use ssl::*;
pub use wallet::*;

#[cfg(test)]
mod testing {
    use std::str::FromStr;

    use bip39::Mnemonic;
    use once_cell::sync::Lazy;

    const MNEMONIC: &str = "setup update spoil lazy square course ring tell hard eager industry ticket guess amused build reunion woman system cause afraid first material machine morning";
    pub(crate) static SEED: Lazy<[u8; 64]> =
        Lazy::new(|| Mnemonic::from_str(MNEMONIC).unwrap().to_seed(""));
}