Optional_credOptional_encodedOptional_schemaEach credential references the schema which is included as an attribute
Optional_sigOptional_subjectStaticVERSIONFollows 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.
ProtectedapplyProtectednewOptionalcredStatus: 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.
OptionalrevType: 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.
OptionalsignatureParams: BBSSignatureParamsThis makes bulk issuance of credentials with same number of attributes faster because the signature params don't have to be generated.
OptionalsigningOpts: Partial<ISigningOpts>ProtectedsignWhen schema doesn't match the credential, create a new appropriate schema and update the credential. Returns the serialized credential
OptionalsigningOpts: 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
OptionalsigningOpts: Partial<ISigningOpts>Statichas
Create a
BBScredential