QRGenerator class for generating QR codes for connecting, issuing, and verifying credentials.

Hierarchy

  • QRGenerator

Constructors

Properties

didAccount: DIDAccount

The DID account.

issuerDid: string

The issuer's DID.

Methods

  • Generates a Connect QR code object with the given callback endpoint, session ID, and optional issuer details.

    Parameters

    • callbackEndpoint: string

      The callback endpoint for the Connect QR code.

    • sessionId: string = ...

      The session ID for the Connect QR code. Defaults to a randomly generated UUID v4.

    • Optional issuerDetail: IIssuerDetail

      Optional issuer details to include in the Connect QR code.

    Returns IConnectQR

    The generated Connect QR code object.

  • Generates a credential QR code object.

    Parameters

    • callbackEndpoint: string

      The callback endpoint URL.

    • userDid: string

      The user's DID.

    • credentials: ICredentialBody[]

      An array of credential bodies.

    • sessionId: string = ...

      (Optional) The session ID. Defaults to a generated UUID v4.

    • type: QRTypes = QRTypes.TYPE_CREDENTIAL_VC

      (Optional) The QR code type. Defaults to QRTypes.TYPE_CREDENTIAL_VC.

    Returns ICredentialQR

    The generated credential QR code object.

Generated using TypeDoc