Trait AwsKmsSolanaService

Source
pub trait AwsKmsSolanaService: Send + Sync {
    // Required methods
    fn get_solana_address<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = AwsKmsResult<Address>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_solana<'life0, 'life1, 'async_trait>(
        &'life0 self,
        message: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for Solana-specific AWS KMS operations

Required Methods§

Source

fn get_solana_address<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AwsKmsResult<Address>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the Solana address derived from the configured Ed25519 public key.

Source

fn sign_solana<'life0, 'life1, 'async_trait>( &'life0 self, message: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Signs a message using Ed25519 for Solana.

Implementors§