Trait ockam_entity::Issuer[][src]

pub trait Issuer {
    fn get_signing_key(&mut self) -> Result<SecretKey>;
fn get_signing_public_key(&mut self) -> Result<SigningPublicKey>;
fn create_offer(&self, schema: &CredentialSchema) -> Result<CredentialOffer>;
fn create_proof_of_possession(&self) -> Result<CredentialProof>;
fn sign_credential<A: AsRef<[CredentialAttribute]>>(
        &self,
        schema: &CredentialSchema,
        attributes: A
    ) -> Result<Credential>;
fn sign_credential_request<A: AsRef<[(String, CredentialAttribute)]>>(
        &self,
        request: &CredentialRequest,
        schema: &CredentialSchema,
        attributes: A,
        offer_id: OfferId
    ) -> Result<CredentialFragment2>; }
Expand description

Issuer API

Required methods

Return the signing key associated with this CredentialIssuer

Return the public key

Create a credential offer

Create a proof of possession for this issuers signing key

Sign the claims into the credential

Sign a credential request where certain claims have already been committed and signs the remaining claims

Implementors