Options
All
  • Public
  • Public/Protected
  • All
Menu

The credential contains information which are used to create presentations. It must be kept secret.

Hierarchy

Index

Constructors

constructor

Methods

getDate

  • getDate(): Date
  • Returns the date when this Credential has been updated the last time.

    throws

    Invalid credential If the credential does not have an Updated field.

    Returns Date

    The date of the Credential's last update as ISO string.

getUpdateCounter

  • getUpdateCounter(): number
  • Returns the number of updates done. Combining this method with getLatestAccumulator in updateFromChain, it shows how many updates of this Credential would be required to be up to date.

    throws

    Invalid credential If the credential does not have an updateCounter field.

    Returns number

    The number of accumulator updates done with this credential.

parse

toString

  • toString(): string

update

updateFromChain

  • updateFromChain(__namedParameters: { attesterChainAddress: string; attesterPubKey: AttesterPublicKey; endIndex: undefined | number }): Promise<Credential>

updateSingle

Generated using TypeDoc