pub trait TurnkeyServiceTrait: Send + Sync {
// Required methods
fn address_solana(&self) -> Result<Address, TurnkeyError>;
fn address_evm(&self) -> Result<Address, TurnkeyError>;
fn sign_solana<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, TurnkeyError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn sign_evm<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, TurnkeyError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn sign_evm_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, TurnkeyError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn sign_solana_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction: &'life1 mut Transaction,
) -> Pin<Box<dyn Future<Output = TurnkeyResult<(Transaction, Signature)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Required Methods§
Sourcefn address_solana(&self) -> Result<Address, TurnkeyError>
fn address_solana(&self) -> Result<Address, TurnkeyError>
Returns the Solana address derived from the configured public key
Sourcefn address_evm(&self) -> Result<Address, TurnkeyError>
fn address_evm(&self) -> Result<Address, TurnkeyError>
Returns the EVM address derived from the configured public key
Sourcefn sign_solana<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, TurnkeyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_solana<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, TurnkeyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Signs a message using the Solana signing scheme
Sourcefn sign_evm<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, TurnkeyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_evm<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, TurnkeyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Signs a message using the EVM signing scheme
Sourcefn sign_evm_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, TurnkeyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_evm_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, TurnkeyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Signs an EVM transaction using the Turnkey API
Sourcefn sign_solana_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction: &'life1 mut Transaction,
) -> Pin<Box<dyn Future<Output = TurnkeyResult<(Transaction, Signature)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_solana_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction: &'life1 mut Transaction,
) -> Pin<Box<dyn Future<Output = TurnkeyResult<(Transaction, Signature)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Signs a Solana transaction and returns both the transaction and signature