idToCurve function
Get the curve name from the curve ID @param {int} ID Curve's ID
Implementation
String idToCurve(int id) {
switch (id) {
case 0:
return 'ed25519';
case 1:
return 'P256';
case 2:
return 'secp256k1';
default:
throw 'Curve ID not supported';
}
}