isValidSeed static method

bool isValidSeed(
  1. String seed
)

Implementation

static bool isValidSeed(String seed) {
  // Ensure seed is 64 characters long
  if (seed == null || seed.length != 64) {
    return false;
  }
  // Ensure seed only contains hex characters, 0-9;A-F
  return AppHelpers.isHexString(seed);
}