Class KeylessConfiguration

Represents the on-chain configuration for how Keyless accounts operate.

This class encapsulates the verification key and the maximum lifespan of ephemeral key pairs, which are essential for the functionality of Keyless accounts.

Implementation - Serialization

maxCommitedEpkBytes: number

The maximum number of bytes that can be used for the committed ephemeral public key.

maxExpHorizonSecs: number

The maximum lifespan of an ephemeral key pair. This is configured on chain.

maxExtraFieldBytes: number

The maximum number of bytes that can be used for the extra field.

maxIssValBytes: number

The maximum number of bytes that can be used for the issuer value.

maxJwtHeaderB64Bytes: number

The maximum number of bytes that can be used for the JWT header.

trainingWheelsPubkey?: EphemeralPublicKey

The public key of the training wheels account.

verificationKey: Groth16VerificationKey

The verification key used to verify Groth16 proofs on chain

Constructors

  • Parameters

    • args: {
          maxCommitedEpkBytes?: number;
          maxExpHorizonSecs?: number;
          maxExtraFieldBytes?: number;
          maxIssValBytes?: number;
          maxJwtHeaderB64Bytes?: number;
          trainingWheelsPubkey?: HexInput;
          verificationKey: Groth16VerificationKey;
      }

    Returns KeylessConfiguration

Methods

MMNEPVFCICPMFPCPTTAAATR