Example #1
0
        public void TestDecryptKey()
        {
            string  nep2key = keyPair.Export("123", ProtocolSettings.Default.AddressVersion, 2, 1, 1);
            KeyPair key1    = uut.DecryptKey(nep2key);
            bool    result  = key1.Equals(keyPair);

            Assert.AreEqual(true, result);
        }
Example #2
0
        public void TestDecryptKey()
        {
            string nep2key = keyPair.Export("123", 0, 0, 0);

            uut.Unlock("123");
            KeyPair key1   = uut.DecryptKey(nep2key);
            bool    result = key1.Equals(keyPair);

            Assert.AreEqual(true, result);
        }