generateKeyPair = async () => {
  const keyPair = await window.crypto.subtle.generateKey(
    ECDH_PARAMS,
    KEY_IS_EXTRACTABLE,
    KEY_WILL_BE_USED_TO
  )
  return keyPair
}
NIST recommendation:

128-bit security provided with 256-bit key size

Pg. 55
https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57pt1r5.pdf