async def setup( context: InjectionContext, protocol_registry: ProblemReport = None ): """Setup the issuer plugin.""" if not protocol_registry: protocol_registry = await context.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 )