code: public static boolean isDataHash(byte[] imprint) {
          Util.notNull(imprint, "Hash imprint");
          if (imprint.length < 1) {
              return false;
          }
          if (!HashAlgorithm.isHashAlgorithmId(imprint[0])) {
              return false;
          }
          HashAlgorithm algorithm = HashAlgorithm.getById(imprint[0]);
          return algorithm.getLength() + 1 == imprint.length;
      }
docs: Checks if the input byte array can be converted to the {@link DataHash} object.
  
  @param imprint byte array to be checked.
  
  @return True, if the input byte array can be converted to the {@link DataHash} object.
  
  @throws NullPointerException when input is null