pub trait AwsKmsEd25519: Send + Sync {
// Required methods
fn get_ed25519_public_key<'a, 'b, 'async_trait>(
&'a self,
key_id: &'b str,
) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'b: 'async_trait;
fn sign_ed25519<'a, 'b, 'async_trait>(
&'a self,
key_id: &'b str,
message: &'b [u8],
) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'b: 'async_trait;
}Expand description
Trait for Ed25519 (EdDSA) operations with AWS KMS. Used for Solana and Stellar signing.
Required Methods§
Sourcefn get_ed25519_public_key<'a, 'b, 'async_trait>(
&'a self,
key_id: &'b str,
) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'b: 'async_trait,
fn get_ed25519_public_key<'a, 'b, 'async_trait>(
&'a self,
key_id: &'b str,
) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'b: 'async_trait,
Fetches the DER-encoded Ed25519 public key from AWS KMS.
Sourcefn sign_ed25519<'a, 'b, 'async_trait>(
&'a self,
key_id: &'b str,
message: &'b [u8],
) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'b: 'async_trait,
fn sign_ed25519<'a, 'b, 'async_trait>(
&'a self,
key_id: &'b str,
message: &'b [u8],
) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'b: 'async_trait,
Signs a message using Ed25519. Returns 64-byte signature. Uses ED25519_SHA_512 algorithm with RAW message type.