isValidBytes static method
Static method to check the validity of key bytes for a specific elliptic curve type.
Implementation
static bool isValidBytes(List<int> bytes) {
try {
BaseMLDSAPrivateKey.fromBytes(bytes);
return true;
} catch (_) {
return false;
}
}