protected void CreateWalletIfNotExists()
 {
     if (WalletManager.CurrentWallet == null)
     {
         Debug.Log("MyWalletBalanceDemo:Start - No wallet available, create one now.");
         WalletManager.CreateWallet("TestWallet", "password");
     }
 }
Пример #2
0
        public void OnCreateWalletClick()
        {
            OnResetWalletClick();             // We only demo the first wallet, so reset it first before creating
            WalletManager.CreateWallet("Dummy Account Name", _createPasswordInputField.text);

            // Print out some wallet parameters after creation
            _createPublicKeyInputField.text     = WalletManager.CurrentWallet.address;
            _createPrivateKeyInputField.text    = WalletManager.CurrentWallet.privateKey;
            _createEncryptedJsonInputField.text = WalletManager.CurrentWallet.encryptedJson;
        }