tcrypto: add comment about ripemd.py - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 707a58abf11c541ca5e8b69d092d612d7613c538 DIR parent a7c948bac124a916f530be6c4055061ff72c29a0 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 10 Mar 2021 21:28:17 +0100 crypto: add comment about ripemd.py related: https://github.com/spesmilo/electrum/issues/7093 Diffstat: M electrum/crypto.py | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum/crypto.py b/electrum/crypto.py t@@ -315,6 +315,10 @@ def ripemd(x): md.update(x) return md.digest() except BaseException: + # ripemd160 is not guaranteed to be available in hashlib on all platforms. + # Historically, our Android builds had hashlib/openssl which did not have it. + # see https://github.com/spesmilo/electrum/issues/7093 + # We bundle a pure python implementation as fallback that gets used now: from . import ripemd md = ripemd.new(x) return md.digest()