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
// sub-modules

mod state;
mod vault;

// exports

pub use state::*;
pub use vault::*;

// imports from standard library

use std::any::Any;
use std::fmt;
use std::marker::PhantomData;
use std::sync::Arc;

// imports from 3rd party crates

use anyhow::{ensure, format_err, Result};
use parking_lot::{
    MappedRwLockReadGuard, MappedRwLockWriteGuard, RwLock, RwLockReadGuard, RwLockWriteGuard,
};
#[cfg(not(target_arch = "wasm32"))]
use serde::Deserialize;
use serde::Serialize;

// imports from own crates

use iop_keyvault::{encrypt::*, Bip39, Seed};