Options
All
  • Public
  • Public/Protected
  • All
Menu

The Attester can be used to create and revoke Attestations of Credentials.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly privateKey

privateKey: AttesterPrivateKey

Readonly publicKey

Methods

createAccumulator

  • createAccumulator(): ReturnType<IAttester["createAccumulator"]>

issueAttestation

revokeAttestation

  • revokeAttestation(__namedParameters: { accumulator: Accumulator; witnesses: Witness[] }): ReturnType<IAttester["revokeAttestation"]>

startAttestation

  • startAttestation(): ReturnType<IAttester["startAttestation"]>
  • Initiates the attestation session.

    Returns ReturnType<IAttester["startAttestation"]>

    A session and a message object. The message should be sent over to the Claimer.

Static create

Static genKeyPair

  • genKeyPair(__namedParameters?: { keyLength: undefined | 1024 | 2048 | 4096; maxAttributes: undefined | number; validityDuration: undefined | number }): Promise<{ privateKey: AttesterPrivateKey; publicKey: AttesterPublicKey }>
  • Generates a new key pair.

    Parameters

    • Default value __namedParameters: { keyLength: undefined | 1024 | 2048 | 4096; maxAttributes: undefined | number; validityDuration: undefined | number } = {}
      • keyLength: undefined | 1024 | 2048 | 4096
      • maxAttributes: undefined | number
      • validityDuration: undefined | number

    Returns Promise<{ privateKey: AttesterPrivateKey; publicKey: AttesterPublicKey }>

    A newly generated key pair.

Generated using TypeDoc