isValidBytes static method

bool isValidBytes(
  1. List<int> keyBytes
)
override

check bytes is valid for this key

Implementation

static bool isValidBytes(List<int> keyBytes) {
  try {
    Ed25519PublicKey.fromBytes(keyBytes);
    return true;
    // ignore: empty_catches
  } catch (e) {}
  return false;
}