Function generateKeyPair

  • Generate a random ED25519 keypair

    Returns

    Key pair

    Parameters

    • raw: true

      Whether to return raw (binary) keys

    Returns { publicKey: Buffer; secretKey: Buffer }

    • publicKey: Buffer
    • secretKey: Buffer
  • Parameters

    • Optional raw: false

    Returns { publicKey: AccountAddress; secretKey: string }

Generated using TypeDoc