def to_h
      h = {}

      %i(prevhash uncles_hash extra_data nonce mixhash).each do |field|
        h[field] = "0x#{Utils.encode_hex(send field)}"
      end

      %i(state_root tx_list_root receipts_root coinbase).each do |field|
        h[field] = Utils.encode_hex send(field)
      end

      %i(number difficulty gas_limit gas_used timestamp).each do |field|
        h[field] = send(field).to_s
      end

      h[:bloom] = Utils.encode_hex Sedes.int256.serialize(bloom)

      h
    end
def to_h
      h = {}

      %i(prevhash uncles_hash extra_data nonce mixhash).each do |field|
        h[field] = "0x#{Utils.encode_hex(send field)}"
      end

      %i(state_root tx_list_root receipts_root coinbase).each do |field|
        h[field] = Utils.encode_hex send(field)
      end

      %i(number difficulty gas_limit gas_used timestamp).each do |field|
        h[field] = send(field).to_s
      end

      h[:bloom] = Utils.encode_hex Sedes.int256.serialize(bloom)

      h
    end
Serialize the header to a readable hash.