private void initData()
        {
            neoAddress = new neoHelper.neoAddress(txtWIF.Text);

            labPubKey.Text = neoAddress.addrPubKey;
            labAddr.Text   = txtDoAddr.Text = neoAddress.addrStr;

            nelApiUrl = cmbnelApiUrl.Text;

            nelApi = new nelApiHelper(nelApiUrl);
        }
Esempio n. 2
0
        static private bool initAddr()
        {
            Console.WriteLine("Input NEO WIF:");
            string WIF = Console.ReadLine();

            try
            {
                neoAddress = new neoHelper.neoAddress(WIF);
                //PriKey = ThinNeo.Helper_NEO.GetPrivateKeyFromWIF(WIF);
                //PubKey = ThinNeo.Helper_NEO.GetPublicKey_FromPrivateKey(PriKey);
                //addrStr = ThinNeo.Helper_NEO.GetAddress_FromPublicKey(PubKey);
                Console.WriteLine("NEO address: " + neoAddress.addrStr);
                return(true);
            }
            catch
            {
                Console.WriteLine("Error WIF,retry!");
                return(false);
            }
        }
Esempio n. 3
0
 public NNS_resolver(neoHelper.neoAddress neoAddressIn, string contractHashIn, string nelApiUrlIn)
 {
     cop = new contractOperate(neoAddressIn, contractHashIn, nelApiUrlIn);
 }