Optional
_credOptional
_encodedOptional
_schemaEach credential references the schema which is included as an attribute
Optional
_sigOptional
_subjectStatic
VERSIONFollows semver and must be updated accordingly when the logic of this class changes or the underlying crypto changes.
Add single or an array of subjects.
Protected
applyProtected
newOptional
credStatus: objectSet the credentialStatus
property of the credential
This is id of the revocation registry, like the unique id of the accumulator
whether its a membership or non-membership check. this depends on how revocation is implemented, i.e. if
Value present/absent in the revocation registry (accumulator for now) which corresponds to a credential. This should be unique per credential per registry.
Optional
revType: RevocationStatusProtocolrevocation protocol being used like if accumulator, which accumulator
Serializes and signs creating a credential. Expects the credential to have the same fields as schema. This is intentional to always communicate to the verifier the full structure of the credential.
Optional
signatureParams: BBDT16MacParamsThis makes bulk issuance of credentials with same number of attributes faster because the signature params don't have to be generated.
Optional
signingOpts: Partial<ISigningOpts>Protected
signWhen schema doesn't match the credential, create a new appropriate schema and update the credential. Returns the serialized credential
Optional
signingOpts: Partial<ISigningOpts>When schema doesn't match the credential, create a new appropriate schema and update the credential. Returns the serialized credential. Legacy version. Used by SDK for some older credential versions
Optional
signingOpts: Partial<ISigningOpts>Static
has
Create a credential