'use strict' ; import { FabricWallet } from './FabricWallet' ; import { FabricWalletRegistryEntry , IFabricWalletGenerator , IFabricWallet } from 'ibm-blockchain-platform-common' ; export class FabricWalletGenerator implements IFabricWalletGenerator { public static instance ( ) { return FabricWalletGenerator . _instance ; } private static _instance : FabricWalletGenerator = new FabricWalletGenerator ( ) ; public async getWallet ( walletRegistryEntry ) { return FabricWallet . newFabricWallet ( walletRegistryEntry . walletPath ) ; } }