isValidBytes static method
check if bytes is valid for this key.
Implementation
static bool isValidBytes(List<int> keyBytes) {
try {
Nist256p1PublicKey.fromBytes(keyBytes);
return true;
// ignore: empty_catches
} catch (e) {}
return false;
}