Struct iota_wallet::secret::ledger_nano::LedgerSecretManager
[−]Expand description
Secret manager that uses a Ledger hardware wallet.
Fields
is_simulator: bool
Specifies if a real Ledger hardware is used or only a simulator is used.
mutex: Mutex<()>
Mutex to prevent multiple simultaneous requests to a ledger.
Implementations
impl LedgerSecretManager
impl LedgerSecretManager
pub fn new(is_simulator: bool) -> LedgerSecretManager
pub fn new(is_simulator: bool) -> LedgerSecretManager
Creates a LedgerSecretManager
.
To use a Ledger Speculos simulator, pass true
to is_simulator
; false
otherwise.
pub async fn get_ledger_nano_status(&self) -> LedgerNanoStatus
pub async fn get_ledger_nano_status(&self) -> LedgerNanoStatus
Get Ledger hardware status.
Trait Implementations
impl Default for LedgerSecretManager
impl Default for LedgerSecretManager
fn default() -> LedgerSecretManager
fn default() -> LedgerSecretManager
Returns the “default value” for a type. Read more
impl SecretManage for LedgerSecretManager
impl SecretManage for LedgerSecretManager
fn generate_addresses<'life0, 'async_trait>(
&'life0 self,
coin_type: u32,
account_index: u32,
address_indexes: Range<u32>,
internal: bool,
meta: GenerateAddressMetadata
) -> Pin<Box<dyn Future<Output = Result<Vec<Address, Global>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
LedgerSecretManager: 'async_trait,
fn generate_addresses<'life0, 'async_trait>(
&'life0 self,
coin_type: u32,
account_index: u32,
address_indexes: Range<u32>,
internal: bool,
meta: GenerateAddressMetadata
) -> Pin<Box<dyn Future<Output = Result<Vec<Address, Global>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
LedgerSecretManager: '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,
LedgerSecretManager: '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,
LedgerSecretManager: 'async_trait,
Sign on essence
, unlock input
by returning an [Unlock].
impl SecretManageExt for LedgerSecretManager
impl SecretManageExt for LedgerSecretManager
fn sign_transaction_essence<'life0, 'life1, 'async_trait>(
&'life0 self,
prepared_transaction: &'life1 PreparedTransactionData
) -> Pin<Box<dyn Future<Output = Result<Unlocks, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
LedgerSecretManager: 'async_trait,
fn sign_transaction_essence<'life0, 'life1, 'async_trait>(
&'life0 self,
prepared_transaction: &'life1 PreparedTransactionData
) -> Pin<Box<dyn Future<Output = Result<Unlocks, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
LedgerSecretManager: 'async_trait,
Signs transaction essence. Read more
Auto Trait Implementations
impl !RefUnwindSafe for LedgerSecretManager
impl Send for LedgerSecretManager
impl Sync for LedgerSecretManager
impl Unpin for LedgerSecretManager
impl UnwindSafe for LedgerSecretManager
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