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<BbsCredential>;
fn sign_credential_request(
&mut self,
request: &CredentialRequest,
schema: &CredentialSchema,
attributes: &[(String, CredentialAttribute)],
offer_id: OfferId
) -> Result<CredentialFragment2>;
}
Expand description
Credential Issuer
Required methods
fn get_signing_key(&mut self) -> Result<BlsSecretKey>
fn get_signing_key(&mut self) -> Result<BlsSecretKey>
Return the signing key associated with this CredentialIssuer
fn get_signing_public_key(&mut self) -> Result<SigningPublicKey>
fn get_signing_public_key(&mut self) -> Result<SigningPublicKey>
Return the public key
fn create_offer(&mut self, schema: &CredentialSchema) -> Result<CredentialOffer>
fn create_offer(&mut self, schema: &CredentialSchema) -> Result<CredentialOffer>
Create a credential offer
fn create_proof_of_possession(&mut self) -> Result<ProofBytes>
fn create_proof_of_possession(&mut self) -> Result<ProofBytes>
Create a proof of possession for this issuers signing key
fn sign_credential(
&mut self,
schema: &CredentialSchema,
attributes: &[CredentialAttribute]
) -> Result<BbsCredential>
fn sign_credential(
&mut self,
schema: &CredentialSchema,
attributes: &[CredentialAttribute]
) -> Result<BbsCredential>
Sign the claims into the credential
fn sign_credential_request(
&mut self,
request: &CredentialRequest,
schema: &CredentialSchema,
attributes: &[(String, CredentialAttribute)],
offer_id: OfferId
) -> Result<CredentialFragment2>
fn sign_credential_request(
&mut self,
request: &CredentialRequest,
schema: &CredentialSchema,
attributes: &[(String, CredentialAttribute)],
offer_id: OfferId
) -> Result<CredentialFragment2>
Sign a credential request where certain claims have already been committed and signs the remaining claims