isValidEntropyByteLen static method

bool isValidEntropyByteLen(
  1. int byteLen
)

Check if a given byte length is a valid BIP39 entropy byte length.

  • byteLen: The byte length to check for validity.
  • Returns: true if the byte length is valid, false otherwise.

Implementation

static bool isValidEntropyByteLen(int byteLen) {
  return isValidEntropyBitLen(byteLen * 8);
}