public void Import(WalletImportExportConfig importExportConfig) { (string config, string credentials) = GetConfigCredentialJson(); string import = importExportConfig.ToJson(); WalletAsync.ImportAsync(config, credentials, import).Wait(); }
public void Create() { (string config, string credentials) = GetConfigCredentialJson(); Logger.Info($"config is {config}"); Logger.Info($"credentials is {credentials}"); WalletAsync.CreateWalletAsync(config, credentials).Wait(); }
public void Close() { if (null == _asyncHandle) { return; } _asyncHandle.CloseAsync().Wait(); _asyncHandle = null; Handle = INVALID_WALLET_HANDLE; }
public void Open() { (string config, string credentials) = GetConfigCredentialJson(); _asyncHandle = WalletAsync.OpenWalletAsync(config, credentials).Result; Handle = _asyncHandle.Handle; }
public void Delete() { (string config, string credentials) = GetConfigCredentialJson(); WalletAsync.DeleteWalletAsync(config, credentials).Wait(); }