From: Victor Wagner Date: Tue, 21 Jun 2016 17:30:15 +0000 (+0300) Subject: check pubkeys in testec X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=a8cf21240c9e0c460055367117d57618cbba3bf1;p=oss%2Fctypescrypto.git check pubkeys in testec --- diff --git a/tests/testec.py b/tests/testec.py index c5054a5..ccf289c 100644 --- a/tests/testec.py +++ b/tests/testec.py @@ -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()