Class BlindedCredential<BlindSig>Abstract

A blinded credential created by the signer. Has to be converted to a (unblinded) credential

Type Parameters

  • BlindSig

Hierarchy (view full)

Constructors

Properties

_version: string
credentialStatus?: object

Each credential references the schema which is included as an attribute

signature: BlindSig
subject: object | object[]
topLevelFields: Map<string, unknown>

Accessors

Methods

  • Parameters

    • proofType: string
    • blindedSubject: object | object[]
    • OptionalblindedStatus: object
    • OptionalblindedTopLevelFields: Map<string, unknown>

    Returns [object | object[], undefined | object, Map<string, unknown>]

  • Merge blinded and unblinded subject to create the subject of the final credential

    Parameters

    • blindedSubject: object | object[]

    Returns object | object[]

  • A credential will have at least some proof metadata like the type or purpose. This adds those defaults to the given object.

    Parameters

    • _s: object

    Returns void