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