======================================================================
FAIL: test_random_keys (pybitmessage.pyelliptic.tests.test_ecc.TestECC)
A dummy test for random keys in ECC object
----------------------------------------------------------------------
Traceback (most recent call last):
File "pybitmessage/pyelliptic/tests/test_ecc.py", line 31, in test_random_keys
self.assertEqual(pubkey[:4], b'\x02\xca\x00\x20')
AssertionError: '\x02\xca\x00\x1f' != '\x02\xca\x00 '
I may be wrong. I preferred to pad the pubkey coordinates in ECC.get_pubkey() because I see the b'\x02\xca\x00 ' literal here in highlevelcrypto. Maybe I should've changed the pubkey parts of test_random_keys() instead, like I did for the privkey?
Hi!
This is a possible fix for failures like this.
I may be wrong. I preferred to pad the pubkey coordinates in
ECC.get_pubkey()
because I see theb'\x02\xca\x00 '
literal here inhighlevelcrypto
. Maybe I should've changed the pubkey parts oftest_random_keys()
instead, like I did for the privkey?