pub struct LedgerSigner {
hd_path: BIP32Path,
public_key: OnceCell<PublicKey>,
}Fields§
§hd_path: BIP32Path§public_key: OnceCell<PublicKey>Implementations§
Trait Implementations§
Source§impl Clone for LedgerSigner
impl Clone for LedgerSigner
Source§fn clone(&self) -> LedgerSigner
fn clone(&self) -> LedgerSigner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LedgerSigner
impl Debug for LedgerSigner
Source§impl SignerTrait for LedgerSigner
impl SignerTrait for LedgerSigner
Source§fn sign<'life0, 'async_trait>(
&'life0 self,
tr: PrepopulateTransaction,
public_key: PublicKey,
nonce: Nonce,
block_hash: CryptoHash,
) -> Pin<Box<dyn Future<Output = Result<SignedTransaction, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign<'life0, 'async_trait>(
&'life0 self,
tr: PrepopulateTransaction,
public_key: PublicKey,
nonce: Nonce,
block_hash: CryptoHash,
) -> Pin<Box<dyn Future<Output = Result<SignedTransaction, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Signs a regular transaction. Read more
Source§fn sign_meta<'life0, 'async_trait>(
&'life0 self,
tr: PrepopulateTransaction,
public_key: PublicKey,
nonce: Nonce,
_block_hash: CryptoHash,
max_block_height: BlockHeight,
) -> Pin<Box<dyn Future<Output = Result<SignedDelegateAction, MetaSignError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign_meta<'life0, 'async_trait>(
&'life0 self,
tr: PrepopulateTransaction,
public_key: PublicKey,
nonce: Nonce,
_block_hash: CryptoHash,
max_block_height: BlockHeight,
) -> Pin<Box<dyn Future<Output = Result<SignedDelegateAction, MetaSignError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Signs a delegate action for meta transactions. Read more
Source§fn sign_message_nep413<'life0, 'async_trait>(
&'life0 self,
_signer_id: AccountId,
_public_key: PublicKey,
payload: NEP413Payload,
) -> Pin<Box<dyn Future<Output = Result<Signature, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign_message_nep413<'life0, 'async_trait>(
&'life0 self,
_signer_id: AccountId,
_public_key: PublicKey,
payload: NEP413Payload,
) -> Pin<Box<dyn Future<Output = Result<Signature, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Signs a NEP413 message that is widely used for the authentication
and off-chain proof of account ownership. Read more
Source§fn get_secret_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_signer_id: &'life1 AccountId,
_public_key: &'life2 PublicKey,
) -> Pin<Box<dyn Future<Output = Result<SecretKey, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_secret_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_signer_id: &'life1 AccountId,
_public_key: &'life2 PublicKey,
) -> Pin<Box<dyn Future<Output = Result<SecretKey, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Returns the secret key associated with this signer.
This is a
helper method that should be implemented by the signer or fail with SignerError.
As long as this method works, the default implementation of the sign_meta and sign methods should work. Read moreSource§fn get_public_key(&self) -> Result<PublicKey, SignerError>
fn get_public_key(&self) -> Result<PublicKey, SignerError>
Returns the public key associated with this signer. Read more
Auto Trait Implementations§
impl !Freeze for LedgerSigner
impl !RefUnwindSafe for LedgerSigner
impl Send for LedgerSigner
impl Sync for LedgerSigner
impl Unpin for LedgerSigner
impl UnwindSafe for LedgerSigner
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