Exemplo n.º 1
0
        public void VerifyNeoSignatureByMono()
        {
            var account_id = Signatures.GetAccountIdFromPrivateKey(PrivateKey1);

            var signature = Signatures.GetSignature(PrivateKey1, message, account_id);

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

            Assert.IsTrue(result);
        }
Exemplo n.º 2
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);
        }