From 0ed566500f593489e4e4ab5cb9075898003c3c48 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Sun, 14 Apr 2024 03:12:34 +0300 Subject: [PATCH] Use fallback.RIPEMD160Hash() in the test for deterministic keys --- src/tests/test_crypto.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/test_crypto.py b/src/tests/test_crypto.py index 9fd6ffa6..e518d7fd 100644 --- a/src/tests/test_crypto.py +++ b/src/tests/test_crypto.py @@ -8,7 +8,7 @@ import unittest from abc import ABCMeta, abstractmethod from binascii import hexlify -from pybitmessage import highlevelcrypto +from pybitmessage import highlevelcrypto, fallback try: @@ -94,8 +94,8 @@ class TestHighlevelcrypto(unittest.TestCase): enkey = highlevelcrypto.deterministic_keys(sample_seed, b'+')[1] self.assertEqual( sample_deterministic_ripe, - hexlify(TestHashlib._hashdigest( - hashlib.sha512(sigkey + enkey).digest()))) + hexlify(fallback.RIPEMD160Hash( + hashlib.sha512(sigkey + enkey).digest()).digest())) def test_signatures(self): """Verify sample signatures and newly generated ones"""