ECDSA.generateKeyPair()
Generates a new public/private key pair. The public key is in SPKI format and the private key is in PKCS#8 format. See ECDSA for an example.
ECDSA
function generateKeyPair(): Promise<KeyPair>;