private void TrezorHidDevice_Connected(object sender, System.EventArgs e) { Xamarin.Forms.Device.BeginInvokeOnMainThread(async() => { await _TrezorManager.InitializeAsync(); Address = await _TrezorManager.GetAddressAsync(new BIP44AddressPath(true, 0, 0, false, 0), false, true); GetAddress?.Invoke(this, new EventArgs()); }); }
private void KeepKeyHidDevice_Connected(object sender, System.EventArgs e) { Device.BeginInvokeOnMainThread(async() => { await _KeepKeyManager.InitializeAsync(); var coinTable = await _KeepKeyManager.GetCoinTable(); _KeepKeyManager.CoinUtility = new KeepKeyCoinUtility(coinTable); Address = await _KeepKeyManager.GetAddressAsync(new BIP44AddressPath(false, 0, 0, false, 0), false, true); GetAddress?.Invoke(this, new EventArgs()); }); }