code: function uint64BEtoNumber(bytes) {
    if (bytes[1] >= 0x20 || bytes[0] > 0) {
      throw new Error("uint64 larger than 2^53, JS may lost accuracy");
    }
    let high = 0;
    for (let i = 0; i < 3; i++) {
      high |= bytes[i] & 0xff;
      high <<= 8;
    }
    high |= bytes[3] & 0xff;
    // ignore > 2^53
    high = (high & 0x001FFFFF) * 0x100000000;
    high += bytes[4] * 0x1000000;
    high += bytes[5] * 0x10000;
    high += bytes[6] * 0x100;
    high += bytes[7] & 0xFF;
  
    return high;
  }
docs: read in uint32BE Bytes return uint32 number
  @param {Buffer} bytes Big-endian byte buffer