Beispiel #1
0
        public static async Task <Wallet> OpenWallet(string wallet, string key)
        {
            string config = WalletUtils.GetCreateWalletConfig(wallet);
            string cred   = WalletUtils.GetOpenWalletCredentials(key);

            return(await Wallet.OpenWalletAsync(config, cred));
        }
Beispiel #2
0
 public static async Task DeleteWallet(string walletName, string key)
 {
     string config = WalletUtils.GetCreateWalletConfig(walletName);
     string cred   = WalletUtils.GetOpenWalletCredentials(key);
     await Wallet.DeleteWalletAsync(config, cred);
 }
Beispiel #3
0
        public static async Task <Wallet> CreateAndOpenWallet(string pool, string wallet, string key)
        {
            await WalletUtils.CreateWallet(pool, wallet);

            return(await OpenWallet(wallet, key));
        }