Ejemplo n.º 1
0
        private async Task BackupWallet()
        {
            var mnemonicPage = new MnemonicPhrasePage(
                new CommonPageSettings
            {
                HasNavigation = true,
                HasBack       = true,
                Title         = "Backup Wallet",
                HeaderText    = "Mnemonic Phrase"
            });

            mnemonicPage.viewModel.Action = () => _context.Navigation.PopAsync();
            mnemonicPage.viewModel.Words  = Settings.Get(Settings.Key.MnemonicPhrase).ToString().Split(' ');

            await _context.Navigation.PushSingleAsync(mnemonicPage);
        }
Ejemplo n.º 2
0
        private async Task OnCreateAccount()
        {
            var words         = EthereumService.MnenonicPhraseGenerate();
            var inputMnemonic = await BuildInputMnemonicPhrasePage(
                "Enter your mnenonic phrase below to create your wallet.",
                "The mnenonic phrase was an exatact match.\nYour wallet has been created.\nCheck out the dashboard.",
                s => string.Join(" ", words) == s);

            var mnemonicPage = new MnemonicPhrasePage(
                new CommonPageSettings
            {
                HasNavigation = false,
                HeaderText    = "Mnemonic Phrase"
            });

            mnemonicPage.viewModel.Action = async() => await _context.Navigation.PushSingleAsync(inputMnemonic);

            mnemonicPage.viewModel.Words = words;

            await _context.Navigation.PushSingleAsync(mnemonicPage);
        }