ec static method
Creates a JsonWebKey of type EC
Implementation
static JsonWebKey ec({
required String curve,
BigInt? xCoordinate,
BigInt? yCoordinate,
BigInt? privateKey,
String? keyId,
String? algorithm,
}) =>
JsonWebKey.fromJson({
'kty': 'EC',
'crv': curve,
if (xCoordinate != null) 'x': _intToBase64(xCoordinate),
if (yCoordinate != null) 'y': _intToBase64(yCoordinate),
if (privateKey != null) 'd': _intToBase64(privateKey),
if (keyId != null) 'kid': keyId,
if (algorithm != null) 'alg': algorithm
})!;