emerald-vault 0.36.0

Emerald Vault - Key Storage for Emerald Wallet
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::blockchain::bitcoin::XPub;

#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Default)]
pub struct AddEntryOptions {
    pub seed_password: Option<String>,
    pub xpub: Option<XPub>
}


impl AddEntryOptions {
    pub fn with_seed_password(password: &str) -> AddEntryOptions {
        AddEntryOptions {
            seed_password: Some(password.to_string()),
            ..Default::default()
        }
    }
}