isValidBytes static method

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

check if bytes is valid for this key.

Implementation

static bool isValidBytes(List<int> keyBytes) {
  try {
    SchnorrkelSecretKey.fromBytes(keyBytes);
    return true;
  } catch (e) {
    return false;
  }
}