von_anchor/anchor/verifier.py
async def load_cache_for_verification(self, archive: bool = False) -> int:
        """
        Load schema, cred def, revocation caches; optionally archive enough to go
        offline and be able to verify proof on content marked of interest in configuration.

        Return timestamp (epoch seconds) of cache load event, also used as subdirectory
        for cache archives.

        :param archive: True to archive now or False to demur (subclasses may still
            need to augment archivable caches further)
        :return: cache load event timestamp (epoch seconds)
        """

        LOGGER.debug('Verifier.load_cache_for_verification >>> archive: %s', archive)

        # Once indy-sdk supports get-cred-def by schema-id, get-rev-reg by schema-id/cred-def-id, should cascade

        rv = int(time())
        for s_id in self.config.get('archive-verifier-caches-on-close', {}).get('schema_id', {}):
            if ok_schema_id(s_id):
                with SCHEMA_CACHE.lock:
                    await self.get_schema(s_id)
            else:
                LOGGER.info('Not archiving schema for specified bad id %s', s_id)
        for cd_id in self.config.get('archive-verifier-caches-on-close', {}).get('cred_def_id', {}):
            if ok_cred_def_id(cd_id):
                with CRED_DEF_CACHE.lock:
                    await self.get_cred_def(cd_id)
            else:
                LOGGER.info('Not archiving cred def for specified bad id %s', cd_id)
        for rr_id in self.config.get('archive-verifier-caches-on-close', {}).get('rev_reg_id', {}):
            if ok_rev_reg_id(rr_id):
                await self.get_rev_reg_def(rr_id)
                with REVO_CACHE.lock:
                    revo_cache_entry = REVO_CACHE.get(rr_id, None)
                    if revo_cache_entry:
                        try:
                            await revo_cache_entry.get_state_json(self._build_rr_state_json, rv, rv)
                        except ClosedPool:
                            LOGGER.warning(
                                'Verifier %s is offline from pool %s, cannot update revo cache reg state for %s to %s',
                                self.wallet.name,
                                self.pool.name,
                                rr_id,
                                rv)
                        except AbsentPool:
                            LOGGER.warning(
                                'Verifier %s has no pool, cannot update revo cache reg state for %s to %s',
                                self.wallet.name,
                                rr_id,
                                rv)
            else:
                LOGGER.info('Not archiving rev reg for specified bad id %s', rr_id)

        if archive:
            ArchivableCaches.archive(self.dir_cache)
        LOGGER.debug('Verifier.load_cache_for_verification <<< %s', rv)
        return rv

        Load schema, cred def, revocation caches; optionally archive enough to go
        offline and be able to verify proof on content marked of interest in configuration.

        Return timestamp (epoch seconds) of cache load event, also used as subdirectory
        for cache archives.

        :param archive: True to archive now or False to demur (subclasses may still
            need to augment archivable caches further)
        :return: cache load event timestamp (epoch seconds)
        
Load schema, cred def, revocation caches; optionally archive enough to go
offline and be able to verify proof on content marked of interest in configuration.

Return timestamp (epoch seconds) of cache load event, also used as subdirectory
for cache archives.
Load schema cred def revocation caches ; optionally archive enough to go offline and be able to verify proof on content marked of interest in configuration . Return timestamp ( epoch seconds ) of cache load event also used as subdirectory for cache archives .
async def load_cache_for_verification(self, archive: bool = False) -> int:
        LOGGER.debug('Verifier.load_cache_for_verification >>> archive: %s', archive)
        rv = int(time())
        for s_id in self.config.get('archive-verifier-caches-on-close', {}).get('schema_id', {}):
            if ok_schema_id(s_id):
                with SCHEMA_CACHE.lock:
                    await self.get_schema(s_id)
            else:
                LOGGER.info('Not archiving schema for specified bad id %s', s_id)
        for cd_id in self.config.get('archive-verifier-caches-on-close', {}).get('cred_def_id', {}):
            if ok_cred_def_id(cd_id):
                with CRED_DEF_CACHE.lock:
                    await self.get_cred_def(cd_id)
            else:
                LOGGER.info('Not archiving cred def for specified bad id %s', cd_id)
        for rr_id in self.config.get('archive-verifier-caches-on-close', {}).get('rev_reg_id', {}):
            if ok_rev_reg_id(rr_id):
                await self.get_rev_reg_def(rr_id)
                with REVO_CACHE.lock:
                    revo_cache_entry = REVO_CACHE.get(rr_id, None)
                    if revo_cache_entry:
                        try:
                            await revo_cache_entry.get_state_json(self._build_rr_state_json, rv, rv)
                        except ClosedPool:
                            LOGGER.warning(
                                'Verifier %s is offline from pool %s, cannot update revo cache reg state for %s to %s',
                                self.wallet.name,
                                self.pool.name,
                                rr_id,
                                rv)
                        except AbsentPool:
                            LOGGER.warning(
                                'Verifier %s has no pool, cannot update revo cache reg state for %s to %s',
                                self.wallet.name,
                                rr_id,
                                rv)
            else:
                LOGGER.info('Not archiving rev reg for specified bad id %s', rr_id)
        if archive:
            ArchivableCaches.archive(self.dir_cache)
        LOGGER.debug('Verifier.load_cache_for_verification <<< %s', rv)
        return rv
async def load_cache_for_verification ( self , archive : bool = False ) -> int : LOGGER . debug ( 'Verifier.load_cache_for_verification >>> archive: %s' , archive ) rv = int ( time ( ) ) for s_id in self . config . get ( 'archive-verifier-caches-on-close' , { } ) . get ( 'schema_id' , { } ) : if ok_schema_id ( s_id ) : with SCHEMA_CACHE . lock : await self . get_schema ( s_id ) else : LOGGER . info ( 'Not archiving schema for specified bad id %s' , s_id ) for cd_id in self . config . get ( 'archive-verifier-caches-on-close' , { } ) . get ( 'cred_def_id' , { } ) : if ok_cred_def_id ( cd_id ) : with CRED_DEF_CACHE . lock : await self . get_cred_def ( cd_id ) else : LOGGER . info ( 'Not archiving cred def for specified bad id %s' , cd_id ) for rr_id in self . config . get ( 'archive-verifier-caches-on-close' , { } ) . get ( 'rev_reg_id' , { } ) : if ok_rev_reg_id ( rr_id ) : await self . get_rev_reg_def ( rr_id ) with REVO_CACHE . lock : revo_cache_entry = REVO_CACHE . get ( rr_id , None ) if revo_cache_entry : try : await revo_cache_entry . get_state_json ( self . _build_rr_state_json , rv , rv ) except ClosedPool : LOGGER . warning ( 'Verifier %s is offline from pool %s, cannot update revo cache reg state for %s to %s' , self . wallet . name , self . pool . name , rr_id , rv ) except AbsentPool : LOGGER . warning ( 'Verifier %s has no pool, cannot update revo cache reg state for %s to %s' , self . wallet . name , rr_id , rv ) else : LOGGER . info ( 'Not archiving rev reg for specified bad id %s' , rr_id ) if archive : ArchivableCaches . archive ( self . dir_cache ) LOGGER . debug ( 'Verifier.load_cache_for_verification <<< %s' , rv ) return rv
Load schema, cred def, revocation caches; optionally archive enough to go
offline and be able to verify proof on content marked of interest in configuration.
Load schema cred def revocation caches ; optionally archive enough to go offline and be able to verify proof on content marked of interest in configuration .
"""
        Load schema, cred def, revocation caches; optionally archive enough to go
        offline and be able to verify proof on content marked of interest in configuration.

        Return timestamp (epoch seconds) of cache load event, also used as subdirectory
        for cache archives.

        :param archive: True to archive now or False to demur (subclasses may still
            need to augment archivable caches further)
        :return: cache load event timestamp (epoch seconds)
        """ # Once indy-sdk supports get-cred-def by schema-id, get-rev-reg by schema-id/cred-def-id, should cascade
cache load event timestamp (epoch seconds)
cache load event timestamp ( epoch seconds )
self
archive
bool
True to archive now or False to demur (subclasses may still
need to augment archivable caches further)
True to archive now or False to demur ( subclasses may still need to augment archivable caches further )