From a8cf21240c9e0c460055367117d57618cbba3bf1 Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Tue, 21 Jun 2016 20:30:15 +0300 Subject: [PATCH] check pubkeys in testec --- tests/testec.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.39.5