def __init__(self): genesis_config = genesis.config() self.pool = NodePool( 'permitify-issuer', genesis_config['genesis_txn_path']) wallet_name = config['name'] + '_Issuer_Wallet' # TODO force to virtual for now issuer_type = 'virtual' issuer_config = {'freshness_time': 0} issuer_creds = {'key': ''} logger.debug('Using virtual Cfg: {} Creds: {}'.format( issuer_config, issuer_creds)) logger.debug("Issuer __init__>>> create wallet {} {} {}".format( issuer_type, issuer_config, issuer_creds)) issuer_wallet = Wallet( self.pool, WALLET_SEED, wallet_name, issuer_type, issuer_config, issuer_creds) logger.debug("Issuer __init__>>> done {} {} {}".format( issuer_type, issuer_config, issuer_creds)) self.instance = VonIssuer( # self.pool, issuer_wallet )
def __init__(self): WALLET_SEED = os.environ.get('INDY_WALLET_SEED') if not WALLET_SEED or len(WALLET_SEED) is not 32: raise Exception( 'INDY_WALLET_SEED must be set and be 32 characters long.') self.__logger = logging.getLogger(__name__) config = hyperledger_indy.config() self.pool = NodePool('the-org-book-issuer', config['genesis_txn_path']) wallet_name = 'TheOrgBook_Issuer_Wallet' issuer_type = 'virtual' issuer_config = {'freshness_time': 0} issuer_creds = {'key': ''} self.__logger.debug("Issuer __init__>>> {} {} {}".format( issuer_type, issuer_config, issuer_creds)) issuer_wallet = Wallet(self.pool, WALLET_SEED, wallet_name, issuer_type, issuer_config, issuer_creds) self.__logger.debug("Issuer __init__>>> {} {} {}".format( issuer_type, issuer_config, issuer_creds)) self.instance = VonIssuer( # self.pool, issuer_wallet)
def __init__(self): config = hyperledger_indy.config() self.pool = NodePool('the-org-book-issuer', config['genesis_txn_path']) self.instance = VonIssuer( self.pool, Wallet(self.pool.name, WALLET_SEED, 'TheOrgBook Issuer Wallet'))
def __init__(self): config = hyperledger_indy.config() self.pool = NodePool('the-org-book-issuer', config['genesis_txn_path']) self.instance = VonIssuer(self.pool, 'the_org_book_issuer_000000000000', 'TheOrgBook Issuer Wallet', None, '127.0.0.1', 9703, 'api/v0')
def __init__(self): genesis_config = genesis.config() self.pool = NodePool('permitify-issuer', genesis_config['genesis_txn_path']) self.instance = VonIssuer( self.pool, Wallet(self.pool.name, WALLET_SEED, config['name'] + ' Issuer Wallet'))
def __init__(self, legal_entity_id: str = None): logger.debug("Issuer __init__>>>") genesis_config = genesis.config() thread_id = threading.get_ident() self.pool = NodePool( # 'dflow-issuer-' + str(thread_id), 'dflow-issuer', genesis_config['genesis_txn_path']) wallet_name = config['name'] + '_Issuer_Wallet' issuer_type = os.environ.get('INDY_WALLET_TYPE') if issuer_type == 'remote': wallet_name = wallet_name + "$$" + str(thread_id) holder_url = os.environ.get('INDY_WALLET_URL') issuer_config = { 'endpoint': holder_url, 'ping': 'schema/', 'auth': 'api-token-auth/', 'keyval': 'keyval/', 'freshness_time': 0 } issuer_creds = { 'auth_token': apps.get_remote_wallet_token(), 'virtual_wallet': legal_entity_id } logger.debug('Using remote Cfg: {} Creds: {}'.format( issuer_config, issuer_creds)) else: # TODO force to virtual for now issuer_type = 'virtual' issuer_config = {'freshness_time': 0} issuer_creds = {'key': '', 'virtual_wallet': legal_entity_id} logger.debug('Using virtual Cfg: {} Creds: {}'.format( issuer_config, issuer_creds)) logger.debug("Issuer __init__>>> create wallet {} {} {}".format( issuer_type, issuer_config, issuer_creds)) issuer_wallet = Wallet(self.pool, WALLET_SEED, wallet_name, issuer_type, issuer_config, issuer_creds) logger.debug("Issuer __init__>>> done {} {} {}".format( issuer_type, issuer_config, issuer_creds)) self.instance = VonIssuer( # self.pool, issuer_wallet) logger.debug("Issuer __init__>>> created VonIssuer")
def __init__(self): self.pool = NodePool('permitify-issuer', '/app/.genesis') self.instance = VonIssuer(self.pool, WALLET_SEED, config['name'] + ' Issuer Wallet', None, '127.0.0.1', 9703, 'api/v0')