pub trait WalletPresenter: Send + Sync {
// Required methods
async fn select_credentials(
&self,
request: Value,
) -> Result<Vec<CredentialMatch>>;
async fn create_presentation(
&self,
selected: Vec<CredentialSelection>,
consent: ConsentRecord,
) -> Result<Value>;
}Expand description
Trait for wallet credential presentation.
Required Methods§
Sourceasync fn select_credentials(
&self,
request: Value,
) -> Result<Vec<CredentialMatch>>
async fn select_credentials( &self, request: Value, ) -> Result<Vec<CredentialMatch>>
Select credentials matching a presentation request.
Sourceasync fn create_presentation(
&self,
selected: Vec<CredentialSelection>,
consent: ConsentRecord,
) -> Result<Value>
async fn create_presentation( &self, selected: Vec<CredentialSelection>, consent: ConsentRecord, ) -> Result<Value>
Create a presentation from selected credentials with consent tracking.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.