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