Enum iota_wallet::secret::SecretManager
[−]pub enum SecretManager {
Stronghold(StrongholdAdapter),
LedgerNano(LedgerSecretManager),
Mnemonic(MnemonicSecretManager),
Placeholder(PlaceholderSecretManager),
}
Expand description
Supported secret managers
Variants
Stronghold(StrongholdAdapter)
Secret manager that uses [iota_stronghold
] as the backing storage.
LedgerNano(LedgerSecretManager)
Secret manager that uses a Ledger Nano hardware wallet or Speculos simulator.
Mnemonic(MnemonicSecretManager)
Secret manager that uses only a mnemonic.
Placeholder(PlaceholderSecretManager)
Secret manager that’s just a placeholder, so it can be provided to an online wallet, but can’t be used for signing.
Trait Implementations
impl Debug for SecretManager
impl Debug for SecretManager
impl<'_> From<&SecretManager> for SecretManagerDto
impl<'_> From<&SecretManager> for SecretManagerDto
fn from(value: &SecretManager) -> SecretManagerDto
fn from(value: &SecretManager) -> SecretManagerDto
Converts to this type from the input type.
impl FromStr for SecretManager
impl FromStr for SecretManager
impl SecretManage for SecretManager
impl SecretManage for SecretManager
fn generate_addresses<'life0, 'async_trait>(
&'life0 self,
coin_type: u32,
account_index: u32,
address_indexes: Range<u32>,
internal: bool,
metadata: GenerateAddressMetadata
) -> Pin<Box<dyn Future<Output = Result<Vec<Address, Global>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
SecretManager: 'async_trait,
fn generate_addresses<'life0, 'async_trait>(
&'life0 self,
coin_type: u32,
account_index: u32,
address_indexes: Range<u32>,
internal: bool,
metadata: GenerateAddressMetadata
) -> Pin<Box<dyn Future<Output = Result<Vec<Address, Global>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
SecretManager: '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],
metadata: &'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,
SecretManager: 'async_trait,
fn signature_unlock<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
input: &'life1 InputSigningData,
essence_hash: &'life2 [u8; 32],
metadata: &'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,
SecretManager: 'async_trait,
Sign on essence
, unlock input
by returning an [Unlock].
impl SecretManageExt for SecretManager
impl SecretManageExt for SecretManager
fn sign_transaction_essence<'life0, 'life1, 'async_trait>(
&'life0 self,
prepared_transaction_data: &'life1 PreparedTransactionData
) -> Pin<Box<dyn Future<Output = Result<Unlocks, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
SecretManager: 'async_trait,
fn sign_transaction_essence<'life0, 'life1, 'async_trait>(
&'life0 self,
prepared_transaction_data: &'life1 PreparedTransactionData
) -> Pin<Box<dyn Future<Output = Result<Unlocks, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
SecretManager: 'async_trait,
Signs transaction essence. Read more
impl<'_> TryFrom<&SecretManagerDto> for SecretManager
impl<'_> TryFrom<&SecretManagerDto> for SecretManager
type Error = Error
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: &SecretManagerDto) -> Result<SecretManager, Error>
fn try_from(value: &SecretManagerDto) -> Result<SecretManager, Error>
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SecretManager
impl Send for SecretManager
impl Sync for SecretManager
impl Unpin for SecretManager
impl !UnwindSafe for SecretManager
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