Generate an EdDSA key pair.

  • Generate an EdDSA key pair.

    Parameters

    • curve: string

      The name of the curve. Only "curve25519" and "x25519" are supported.

    Returns CryptoKeyPair