createCurve static method
Creates a curve instance by name.
Implementation
static CurveInterface createCurve(String curveName) {
switch (curveName.toLowerCase()) {
case 'ed25519':
return Ed25519();
case 'sr25519':
return Sr25519();
default:
throw ArgumentError('Unsupported curve: $curveName');
}
}