Create a Pointcheval-Sanders credential

Hierarchy (view full)

Constructors

Properties

_credStatus?: object
_encodedAttributes?: {
    [key: string]: Uint8Array;
}

Each credential references the schema which is included as an attribute

_subject?: object | object[]
_topLevelFields: Map<string, unknown>
_version: string
VERSION: string = '0.7.0'

Follows semver and must be updated accordingly when the logic of this class changes or the underlying crypto changes.

Accessors

Methods

  • Set the credentialStatus property of the credential

    Parameters

    • registryId: string

      This is id of the revocation registry, like the unique id of the accumulator

    • revCheck: string

      whether its a membership or non-membership check. this depends on how revocation is implemented, i.e. if

    • memberValue: unknown

      Value present/absent in the revocation registry (accumulator for now) which corresponds to a credential. This should be unique per credential per registry.

    • OptionalrevType: RevocationStatusProtocol

      revocation protocol being used like if accumulator, which accumulator

    Returns void