pub trait GoogleCloudKmsStellarService: Send + Sync {
// Required methods
fn get_stellar_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<Address>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn sign_payload_stellar<'life0, 'life1, 'async_trait>(
&'life0 self,
payload: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
Sourcefn get_stellar_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<Address>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_stellar_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<Address>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the Stellar address derived from the configured public key.
Sourcefn sign_payload_stellar<'life0, 'life1, 'async_trait>(
&'life0 self,
payload: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_payload_stellar<'life0, 'life1, 'async_trait>(
&'life0 self,
payload: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Signs a payload using the Stellar signing scheme. Returns the signature in Stellar format.