isValidMessageHash function

bool isValidMessageHash(
  1. Uint8List messageHash
)

If the message hash is of valid length or format.

@param messageHash Uint8List of message hash. @return true/false

Implementation

bool isValidMessageHash(Uint8List messageHash) {
  return messageHash.length == 32;
}