Function generateKeyPair

  • Generate a random ED25519 keypair

    Parameters

    • raw: true

      Whether to return raw (binary) keys

    Returns {
        publicKey: Buffer;
        secretKey: Buffer;
    }

    Key pair

    • publicKey: Buffer
    • secretKey: Buffer
  • Parameters

    • Optional raw: false

    Returns {
        publicKey: AccountAddress;
        secretKey: string;
    }

Generated using TypeDoc