pub trait Issuer: Subject {
// Required method
fn sign<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
credential: &'life1 Credential,
linked_data_proof_options: Option<LinkedDataProofOptions>,
key_id: Option<&'life2 str>,
resolver: &'life3 dyn TrustchainResolver,
context_loader: &'life4 mut ContextLoader,
) -> Pin<Box<dyn Future<Output = Result<Credential, IssuerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
}
Expand description
A credential issuer signs a credential to generate a verifiable credential.
Required Methods§
Sourcefn sign<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
credential: &'life1 Credential,
linked_data_proof_options: Option<LinkedDataProofOptions>,
key_id: Option<&'life2 str>,
resolver: &'life3 dyn TrustchainResolver,
context_loader: &'life4 mut ContextLoader,
) -> Pin<Box<dyn Future<Output = Result<Credential, IssuerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn sign<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
credential: &'life1 Credential,
linked_data_proof_options: Option<LinkedDataProofOptions>,
key_id: Option<&'life2 str>,
resolver: &'life3 dyn TrustchainResolver,
context_loader: &'life4 mut ContextLoader,
) -> Pin<Box<dyn Future<Output = Result<Credential, IssuerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Signs a credential. An issuer attests to a credential by signing the credential with one of their private signing keys.