pub struct Keychain {
pub seed: Seed,
/* private fields */
}
Fields§
§seed: Seed
Implementations§
Source§impl Keychain
impl Keychain
pub fn new(mnemonic: Mnemonic, passphrases: Vec<String>) -> Self
pub fn mnemonic(&self) -> Mnemonic
pub fn passphrases(&self) -> Vec<String>
pub fn seed(&self) -> Seed
pub fn deterministic_entropy( &self, network: Network, word_count: WordCount, index: Index, ) -> Result<Mnemonic>
pub fn secrets(&self, network: Network) -> Result<Secrets>
pub fn add_passphrase<S>(&mut self, passphrase: S)
pub fn remove_passphrase<S>(&mut self, passphrase: S)
pub fn remove_passphrase_by_index(&mut self, index: usize)
pub fn get_passphrase(&self, index: usize) -> Option<String>
pub fn apply_passphrase<S>(&mut self, passphrase: Option<S>)
Trait Implementations§
Source§impl Aes256Encryption for Keychain
impl Aes256Encryption for Keychain
Source§impl<'de> Deserialize<'de> for Keychain
impl<'de> Deserialize<'de> for Keychain
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Keychain
impl RefUnwindSafe for Keychain
impl Send for Keychain
impl Sync for Keychain
impl Unpin for Keychain
impl UnwindSafe for Keychain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more