Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ed25519Keypair

An Ed25519 keypair used for signing transactions.

Hierarchy

  • Ed25519Keypair

Index

Constructors

Accessors

  • get publicKey(): Uint8Array
  • get secretKey(): Uint8Array

Methods

  • fromSecretKey(secretKey: Uint8Array, options?: { skipValidation?: boolean }): Ed25519Keypair
  • 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 Ed25519Keypair.fromSeed method.

    throws

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

    Parameters

    • secretKey: Uint8Array

      secret key byte array

    • Optional options: { skipValidation?: boolean }
      • Optional skipValidation?: boolean

    Returns Ed25519Keypair

Generated using TypeDoc