Trait ockam_entity::CredentialIssuer[][src]

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

Credential Issuer

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