async def setup(session: ProfileSession): """Setup Toolbox Plugin.""" protocol_registry = session.inject(ProtocolRegistry) await cred_def_setup(session, protocol_registry) await schema_setup(session, protocol_registry) await did_setup(session, protocol_registry) await issuer_setup(session, protocol_registry)
async def setup(session: ProfileSession, protocol_registry: ProtocolRegistry = None): """Setup the connections plugin.""" if not protocol_registry: protocol_registry = session.inject(ProtocolRegistry) protocol_registry.register_message_types(MESSAGE_TYPES)
async def setup( session: ProfileSession, protocol_registry: ProblemReport = None ): """Setup the admin-mediator v1_0 plugin.""" if not protocol_registry: protocol_registry = session.inject(ProtocolRegistry) protocol_registry.register_message_types( MESSAGE_TYPES )
async def setup( session: ProfileSession, protocol_registry: ProblemReport = None ): """Load plugin.""" # Load in libsovtoken cdll.LoadLibrary(LIBRARY).sovtoken_init() if not protocol_registry: protocol_registry = session.inject(ProtocolRegistry) protocol_registry.register_message_types( MESSAGE_TYPES )
async def setup(session: ProfileSession): """Setup Toolbox Plugin.""" protocol_registry = session.inject(ProtocolRegistry) await connection_setup(session, protocol_registry) await cred_def_setup(session, protocol_registry) await schema_setup(session, protocol_registry) await did_setup(session, protocol_registry) await static_conn_setup(session, protocol_registry) await holder_setup(session, protocol_registry) await issuer_setup(session, protocol_registry) await basic_message_setup(session, protocol_registry) await taa_setup(session, protocol_registry) # await payment_setup(session, protocol_registry) await invitations_setup(session, protocol_registry) await mediator_setup(session, protocol_registry) await routing_setup(session, protocol_registry)
async def resolver_connections( cls, session: ProfileSession, matching: Callable[[ResolverConnection], bool] = None, ) -> List[ResolverConnection]: """Return all resolver connections.""" storage = session.inject(BaseStorage) records = await storage.find_all_records( ConnRecord.RECORD_TYPE_METADATA, {"key": cls.METADATA_KEY} ) records = cast(List[StorageRecord], records) resolver_connections = [ ResolverConnection.from_metadata_record(record) for record in records ] if matching: resolver_connections = list(filter(matching, resolver_connections)) return resolver_connections
async def setup(session: ProfileSession): """Setup Toolbox Plugin.""" protocol_registry = session.inject(ProtocolRegistry) await connection_setup(session, protocol_registry) await static_conn_setup(session, protocol_registry) await invitations_setup(session, protocol_registry)