Esempio n. 1
0
        public void VerifySignatureMono()
        {
            var account_id = PortableSignatures.GetAccountIdFromPrivateKey(PrivateKey1);

            Assert.AreEqual(account_id, PublicKey1);

            var signature = PortableSignatures.GetSignature(PrivateKey1, message);

            var result = PortableSignatures.VerifyAccountSignature(message, account_id, signature);

            Assert.IsTrue(result);
        }
Esempio n. 2
0
        public void AccountIdByMono()
        {
            var pubKey1 = PortableSignatures.GetAccountIdFromPrivateKey(PrivateKey1);

            Assert.AreEqual(pubKey1, PublicKey1);
        }