We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c51b287 commit 0ed5665Copy full SHA for 0ed5665
src/tests/test_crypto.py
@@ -8,7 +8,7 @@
8
from abc import ABCMeta, abstractmethod
9
from binascii import hexlify
10
11
-from pybitmessage import highlevelcrypto
+from pybitmessage import highlevelcrypto, fallback
12
13
14
try:
@@ -94,8 +94,8 @@ def test_deterministic_keys(self):
94
enkey = highlevelcrypto.deterministic_keys(sample_seed, b'+')[1]
95
self.assertEqual(
96
sample_deterministic_ripe,
97
- hexlify(TestHashlib._hashdigest(
98
- hashlib.sha512(sigkey + enkey).digest())))
+ hexlify(fallback.RIPEMD160Hash(
+ hashlib.sha512(sigkey + enkey).digest()).digest()))
99
100
def test_signatures(self):
101
"""Verify sample signatures and newly generated ones"""
0 commit comments