コード例 #1
0
        protected override void QueryDone(int chainId, ChainInfo chainInfo)
        {
            _export.Edit.Text = null;
            _keyView.Update(null);

            UIApp.Run(async() =>
            {
                var coreAccount = WalletApp.CurrentCoreAccount;
                if (WalletApp.IsCoreAccountUnlocked)
                {
                    var secretKey  = await PassphraseSecretKeyInfo.NewPassphraseSecretKey(chainId, $"{Hex.ToString(coreAccount.RawData)}.{coreAccount.AccountId}");
                    var key        = await Task.Run(() => Key.GenerateEd25519(secretKey.SecretHash));
                    var encryption = await Task.Run(() => Encryption.GenerateAes256(key.Data, _derivedPassword));

                    _keyView.Update(key);
                }
            });
        }
コード例 #2
0
 public void Execute()
 {
     ClickPoint.Update();
     KeyView.Update();
 }