An account keypair used for signing transactions.

Constructors

Accessors

Methods

  • Create a keypair from a raw secret key byte array.

    This method should only be used to recreate a keypair from a previously generated secret key. Generating keypairs from a random seed should be done with the Keypair.fromSeed method.

    Parameters

    • secretKey: Uint8Array

      secret key byte array

    • Optional options: {
          skipValidation?: boolean;
      }

      skip secret key validation

      • Optional skipValidation?: boolean

    Returns Keypair

    Keypair

    Throws

    error if the provided secret key is invalid and validation is not skipped.

Generated using TypeDoc