Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 22.04 has a openssl without ripemd160 #888

Closed
quartzo opened this issue May 1, 2022 · 7 comments
Closed

Ubuntu 22.04 has a openssl without ripemd160 #888

quartzo opened this issue May 1, 2022 · 7 comments
Assignees
Labels
bug Something isn't working Linux support

Comments

@quartzo
Copy link

quartzo commented May 1, 2022

"electrum-sv" reports this error when trying to start on a Ubuntu 22.04 that uses a openssl 3..0.2:
ValueError: unsupported hash type ripemd160

It seems that the openssl maintainers decided to deprecate ripemd160.

@rt121212121
Copy link
Contributor

Please provide the full error information.

@rt121212121 rt121212121 added bug Something isn't working Linux support labels May 2, 2022
@rt121212121
Copy link
Contributor

Keep in mind that we do not have a dependency on openssl and our unittests run without error on Ubuntu 20.04.

https://dev.azure.com/electrumsv/ElectrumSV/_build/results?buildId=5301&view=logs&j=7ebcf5fc-8a8e-5059-508d-8b10dcf2caac&t=7bde167e-0574-57c3-e3e9-2925bd9d420b

@rt121212121 rt121212121 self-assigned this May 2, 2022
@quartzo quartzo changed the title Ubuntu 20.04 has a openssl without ripemd160 Ubuntu 22.04 has a openssl without ripemd160 May 2, 2022
@quartzo
Copy link
Author

quartzo commented May 2, 2022

Keep in mind that we do not have a dependency on openssl and our unittests run without error on Ubuntu 20.04.

https://dev.azure.com/electrumsv/ElectrumSV/_build/results?buildId=5301&view=logs&j=7ebcf5fc-8a8e-5059-508d-8b10dcf2caac&t=7bde167e-0574-57c3-e3e9-2925bd9d420b

Hi! Thanks for the reply.

Sorry about the reference to the 20.04 Ubuntu version, the new Ubuntu 22.04 is the one using the new openssl 3.0.2.
Electrum-sv is using hashlib from the standard python package, and Hashlib uses the openssl installed.

Rimemd160 was deprecated:
openssl/openssl#16994
https://www.reddit.com/r/crypto/comments/sv2y6d/ripemd160_a_disater_in_the_making_thanks_to/

Bitcoin-core implemented a python native solution:
bitcoin/bitcoin#23710

@rt121212121
Copy link
Contributor

Thanks for letting us know. I have opened an issue on the dependency we use for Bitcoin support.

@rt121212121
Copy link
Contributor

Fixed in bitcoinx in develop branch. Do not use develop branch, it is not ready yet.

@vvranjek
Copy link

vvranjek commented Jan 3, 2023

I am getting the same error with version 1.3.15. Is it supposed to be patched in this version?

@rt121212121
Copy link
Contributor

There will be a 1.3.16 release soon, with a hack workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux support
Projects
None yet
Development

No branches or pull requests

3 participants