Skip to content

Commit 0ed5665

Browse files
author
Lee Miller
committed
Use fallback.RIPEMD160Hash() in the test for deterministic keys
1 parent c51b287 commit 0ed5665

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tests/test_crypto.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from abc import ABCMeta, abstractmethod
99
from binascii import hexlify
1010

11-
from pybitmessage import highlevelcrypto
11+
from pybitmessage import highlevelcrypto, fallback
1212

1313

1414
try:
@@ -94,8 +94,8 @@ def test_deterministic_keys(self):
9494
enkey = highlevelcrypto.deterministic_keys(sample_seed, b'+')[1]
9595
self.assertEqual(
9696
sample_deterministic_ripe,
97-
hexlify(TestHashlib._hashdigest(
98-
hashlib.sha512(sigkey + enkey).digest())))
97+
hexlify(fallback.RIPEMD160Hash(
98+
hashlib.sha512(sigkey + enkey).digest()).digest()))
9999

100100
def test_signatures(self):
101101
"""Verify sample signatures and newly generated ones"""

0 commit comments

Comments
 (0)