Exemplo n.º 1
0
        public void TestMethod1()
        {
            Keys keys = new Keys();

            keys.GenerateKeys();
            Signature            sig              = new Signature();
            List <RSABigInteger> blindedMessage   = sig.BlindMessage("test", keys.PublicKey);
            List <RSABigInteger> blindedSignature = sig.CreateSignature(blindedMessage, keys.PrivateKey);

            Console.WriteLine(sig.VerifySignature(blindedSignature, keys.PublicKey));
        }