(self, data_instances)
return cache_data, cache_meta
cache_set = {
            self.guest_party_id: {
                "data": id_list_local_first,
                "cache_id": cache_id,
                "intersect_meta": self.get_intersect_method_meta(),
                "intersect_key": self.get_intersect_key()
            }}
cache_set = {
            self.guest_party_id: {
                "data": id_list_local_first,
                "cache_id": cache_id,
                "intersect_meta": self.get_intersect_method_meta(),
                "intersect_key": self.get_intersect_key()
            }}
cache_set = { self . guest_party_id : { data : id_list_local_first cache_id : cache_id intersect_meta : self . get_intersect_method_meta () intersect_key : self . get_intersect_key () }}
def generate_cache(self, data_instances):
        self._sync_commutative_cipher_public_knowledge()
        self.commutative_cipher.init()

        cache_id = str(uuid.uuid4())
        self.cache_id = {self.guest_party_id: cache_id}
        # id_only.schema = cache_schema
        self.cache_transfer_variable.remote(cache_id, role=consts.GUEST, idx=0)
        LOGGER.info(f"remote cache_id to guest")

        # 1st ID encrypt: (Eh, (h, Instance))
        id_list_local_first = self._encrypt_id(data_instances,
                                               self.commutative_cipher,
                                               reserve_original_key=True,
                                               hash_operator=self.hash_operator,
                                               salt=self.salt,
                                               reserve_original_value=True)
        LOGGER.info("encrypted local id for the 1st time")

        # cache_schema = {"cache_id": cache_id}
        # id_list_local_first.schema = cache_schema

        id_only = id_list_local_first.mapValues(lambda v: None)
        self.transfer_variable.id_ciphertext_list_exchange_h2g.remote(id_only,
                                                                      role=consts.GUEST,
                                                                      idx=0)
        LOGGER.info("sent id 1st ciphertext list to guest")
        """
        cache_set = {
            self.guest_party_id: {
                "data": id_list_local_first,
                "cache_id": cache_id,
                "intersect_meta": self.get_intersect_method_meta(),
                "intersect_key": self.get_intersect_key()
            }}
        """
        cache_data = {self.guest_party_id: id_list_local_first}
        cache_meta = {self.guest_party_id: {"cache_id": cache_id,
                                            "intersect_meta": self.get_intersect_method_meta(),
                                            "intersect_key": self.get_intersect_key()}}
        return cache_data, cache_meta
def generate_cache ( self , data_instances ) : self . _sync_commutative_cipher_public_knowledge ( ) self . commutative_cipher . init ( ) cache_id = str ( uuid . uuid4 ( ) ) self . cache_id = { self . guest_party_id : cache_id } # id_only.schema = cache_schema self . cache_transfer_variable . remote ( cache_id , role = consts . GUEST , idx = 0 ) LOGGER . info ( f"remote cache_id to guest" ) # 1st ID encrypt: (Eh, (h, Instance)) id_list_local_first = self . _encrypt_id ( data_instances , self . commutative_cipher , reserve_original_key = True , hash_operator = self . hash_operator , salt = self . salt , reserve_original_value = True ) LOGGER . info ( "encrypted local id for the 1st time" ) # cache_schema = {"cache_id": cache_id} # id_list_local_first.schema = cache_schema id_only = id_list_local_first . mapValues ( lambda v : None ) self . transfer_variable . id_ciphertext_list_exchange_h2g . remote ( id_only , role = consts . GUEST , idx = 0 ) LOGGER . info ( "sent id 1st ciphertext list to guest" ) cache_data = { self . guest_party_id : id_list_local_first } cache_meta = { self . guest_party_id : { "cache_id" : cache_id , "intersect_meta" : self . get_intersect_method_meta ( ) , "intersect_key" : self . get_intersect_key ( ) } } return cache_data , cache_meta