code: def parse_as_header(class_, f):
          
          version, previous_block_hash, merkle_root, height = parse_struct("L##L", f)
          # https://github.com/BTCGPU/BTCGPU/wiki/Technical-Spec
          f.read(28)  # reserved area
          (timestamp, difficulty, nonce, solution) = parse_struct("LL#S", f)
          return class_(version, previous_block_hash, merkle_root, timestamp,
                        difficulty, nonce, height, solution)
docs: Parse the Block header from the file-like object