示例#1
0
 private bool GetAccount()
 {
     try
     {
         keypair                = ZoroHelper.GetKeyPairFromWIF(tbxAccountWif.Text);
         addressHash            = ZoroHelper.GetPublicKeyHash(keypair.PublicKey);
         tbxAccountAddress.Text = ZoroHelper.GetAddressFromScriptHash(addressHash);
         wif     = tbxAccountWif.Text;
         address = ZoroHelper.GetAddressFromScriptHash(addressHash);
     }
     catch
     {
         MessageBox.Show("钱包 Wif 密钥格式错误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return(false);
     }
     return(true);
 }