]> wagner.pp.ru Git - oss/ctypescrypto.git/commitdiff
check pubkeys in testec
authorVictor Wagner <vitus@wagner.pp.ru>
Tue, 21 Jun 2016 17:30:15 +0000 (20:30 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Tue, 21 Jun 2016 17:30:15 +0000 (20:30 +0300)
tests/testec.py

index c5054a52ada4e3a9730d4640a2c64bedbd3adc1f..ccf289cfe16922f7c09d5705ec3cd243f83e6768 100644 (file)
@@ -35,10 +35,12 @@ cUqktWYGr/GB65Zr5Ky1z/nha2bYCb6U4hTwbJP9CRCZr5hJklXn
             
         out=key.exportpriv()
         self.assertEqual(dump_key(out),dump_key(self.ec1priv))
+        self.assertEqual(str(key),dump_pub_key(self.ec1priv))
 
     def test_bignum(self):
         keyval='\xff'*32
         key=create(Oid("secp256k1"),keyval)
         self.assertEqual(dump_key(key.exportpriv()),dump_key(self.bigkey))
+        self.assertEqual(str(key),dump_pub_key(self.bigkey))
 if __name__ == "__main__":
     unittest.main()