pub trait KeyStore: Send + Sync {
// Required methods
fn create_key<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 IdentityRecord,
) -> Pin<Box<dyn Future<Output = Result<(), PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn did_verification_method<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 IdentityRecord,
) -> Pin<Box<dyn Future<Output = Result<DidVerificationMethod, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn sign<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
identity: &'life1 IdentityRecord,
claims: &'life2 ClientAssertionClaims,
) -> Pin<Box<dyn Future<Output = Result<String, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn verification_key<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 IdentityRecord,
) -> Pin<Box<dyn Future<Output = Result<ClientAssertionVerifyingKey, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn create_key<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 IdentityRecord,
) -> Pin<Box<dyn Future<Output = Result<(), PlatformError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn did_verification_method<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 IdentityRecord,
) -> Pin<Box<dyn Future<Output = Result<DidVerificationMethod, PlatformError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
identity: &'life1 IdentityRecord,
claims: &'life2 ClientAssertionClaims,
) -> Pin<Box<dyn Future<Output = Result<String, PlatformError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verification_key<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 IdentityRecord,
) -> Pin<Box<dyn Future<Output = Result<ClientAssertionVerifyingKey, PlatformError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".