pub struct KeystoreSigner {
potential_pubkeys: Vec<PublicKey>,
}Fields§
§potential_pubkeys: Vec<PublicKey>Implementations§
Source§impl KeystoreSigner
impl KeystoreSigner
pub fn new_with_pubkey(pub_key: PublicKey) -> Self
pub async fn search_for_keys( account_id: AccountId, network: &NetworkConfig, ) -> Result<Self, KeyStoreError>
async fn get_secret_key( account_id: &AccountId, public_key: PublicKey, network_name: &str, ) -> Result<AccountKeyPair, KeyStoreError>
Trait Implementations§
Source§impl Clone for KeystoreSigner
impl Clone for KeystoreSigner
Source§fn clone(&self) -> KeystoreSigner
fn clone(&self) -> KeystoreSigner
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 KeystoreSigner
impl Debug for KeystoreSigner
Source§impl SignerTrait for KeystoreSigner
impl SignerTrait for KeystoreSigner
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
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: Sync + '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: Sync + 'async_trait,
'life0: 'async_trait,
Signs a delegate action for meta transactions. Read more
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: Sync + '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: Sync + 'async_trait,
'life0: 'async_trait,
Signs a regular transaction. 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: Sync + '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: Sync + '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
Auto Trait Implementations§
impl Freeze for KeystoreSigner
impl RefUnwindSafe for KeystoreSigner
impl Send for KeystoreSigner
impl Sync for KeystoreSigner
impl Unpin for KeystoreSigner
impl UnwindSafe for KeystoreSigner
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