Ejemplo n.º 1
0
 public PassphraseViewModel(IScreen hostScreen) : base(hostScreen)
 {
     SubmitCommand = ReactiveCommand.CreateFromObservable(() =>
     {
         var mnemonic = WalletController.GenerateMnemonic(Passphrase, Global.Network).ToString();
         HostScreen.Router.Navigate.Execute(new MnemonicViewModel(hostScreen, mnemonic)).Subscribe();
         return(Observable.Return(Unit.Default));
     });
 }
Ejemplo n.º 2
0
        public void AssertGeneratedWalletCredentialsVerifyWithoutPassphrase()
        {
            string   passphrase = "";           // cannot be null
            Mnemonic mnemonic   = WalletController.GenerateMnemonic(passphrase, Network.Main);

            var isVerified = WalletController.VerifyWalletCredentials(mnemonic.ToString(), passphrase, Network.Main);

            Assert.True(isVerified);
        }