Represents the KeylessPublicKey public key

KeylessPublicKey authentication key is represented in the SDK as AnyPublicKey.

Hierarchy (view full)

Constructors

Properties

idCommitment: Uint8Array

A value representing a cryptographic commitment to a user identity.

It is calculated from the aud, uidKey, uidVal, pepper.

iss: string

The value of the 'iss' claim on the JWT which identifies the OIDC provider.

ID_COMMITMENT_LENGTH: number = 32

The number of bytes that idCommitment should be

Methods

  • Serializes a Serializable value to its BCS representation. This function is the Typescript SDK equivalent of bcs::to_bytes in Move.

    Returns Uint8Array

    the BCS representation of the Serializable instance as a byte buffer

  • Creates a KeylessPublicKey from the JWT components plus pepper

    Parameters

    • args: {
          aud: string;
          iss: string;
          pepper: HexInput;
          uidKey: string;
          uidVal: string;
      }
      • aud: string

        the client ID of the application

      • iss: string

        the iss of the identity

      • pepper: HexInput

        The pepper used to maintain privacy of the account

      • uidKey: string

        the key to use to get the uidVal in the JWT token

      • uidVal: string

        the value of the uidKey in the JWT token

    Returns KeylessPublicKey

    KeylessPublicKey