Struct iota_wallet::secret::mnemonic::MnemonicSecretManager
[−]pub struct MnemonicSecretManager(Seed);
Expand description
Secret manager that uses only a mnemonic.
Computation are done in-memory. A mnemonic needs to be supplied upon the creation of MnemonicSecretManager
.
Tuple Fields
0: Seed
Implementations
impl MnemonicSecretManager
impl MnemonicSecretManager
pub fn try_from_mnemonic(mnemonic: &str) -> Result<MnemonicSecretManager, Error>
pub fn try_from_mnemonic(mnemonic: &str) -> Result<MnemonicSecretManager, Error>
Create a new MnemonicSecretManager
from a BIP-39 mnemonic in English.
For more information, see https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki.
pub fn try_from_hex_seed(hex: &str) -> Result<MnemonicSecretManager, Error>
pub fn try_from_hex_seed(hex: &str) -> Result<MnemonicSecretManager, Error>
Create a new MnemonicSecretManager
from a hex-encoded raw seed string.
Trait Implementations
impl SecretManage for MnemonicSecretManager
impl SecretManage for MnemonicSecretManager
fn generate_addresses<'life0, 'async_trait>(
&'life0 self,
coin_type: u32,
account_index: u32,
address_indexes: Range<u32>,
internal: bool,
__arg5: GenerateAddressMetadata
) -> Pin<Box<dyn Future<Output = Result<Vec<Address, Global>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
MnemonicSecretManager: 'async_trait,
fn generate_addresses<'life0, 'async_trait>(
&'life0 self,
coin_type: u32,
account_index: u32,
address_indexes: Range<u32>,
internal: bool,
__arg5: GenerateAddressMetadata
) -> Pin<Box<dyn Future<Output = Result<Vec<Address, Global>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
MnemonicSecretManager: 'async_trait,
Generates addresses. Read more
fn signature_unlock<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
input: &'life1 InputSigningData,
essence_hash: &'life2 [u8; 32],
__arg3: &'life3 Option<RemainderData>
) -> Pin<Box<dyn Future<Output = Result<Unlock, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
MnemonicSecretManager: 'async_trait,
fn signature_unlock<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
input: &'life1 InputSigningData,
essence_hash: &'life2 [u8; 32],
__arg3: &'life3 Option<RemainderData>
) -> Pin<Box<dyn Future<Output = Result<Unlock, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
MnemonicSecretManager: 'async_trait,
Sign on essence
, unlock input
by returning an [Unlock].
Auto Trait Implementations
impl RefUnwindSafe for MnemonicSecretManager
impl Send for MnemonicSecretManager
impl Sync for MnemonicSecretManager
impl Unpin for MnemonicSecretManager
impl UnwindSafe for MnemonicSecretManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more