Trait iota_wallet::secret::SecretManage
[−]pub trait SecretManage: Send + Sync {
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,
Self: 'async_trait;
fn signature_unlock<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
input: &'life1 InputSigningData,
essence_hash: &'life2 [u8; 32],
remainder: &'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,
Self: 'async_trait;
}
Expand description
The secret manager interface.
Required Methods
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,
Self: '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,
Self: 'async_trait,
Generates addresses.
For coin_type
, see also https://github.com/satoshilabs/slips/blob/master/slip-0044.md.
fn signature_unlock<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
input: &'life1 InputSigningData,
essence_hash: &'life2 [u8; 32],
remainder: &'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,
Self: 'async_trait,
fn signature_unlock<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
input: &'life1 InputSigningData,
essence_hash: &'life2 [u8; 32],
remainder: &'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,
Self: 'async_trait,
Sign on essence
, unlock input
by returning an [Unlock].