richardkiss / pycoin

Python-based Bitcoin and alt-coin utility library.
MIT License
1.4k stars 497 forks source link

Pycoin does not work with latest Ubuntu (22.04 Jammy) (ripemd160 has been deprecated in OpenSSL-3) #399

Closed mmgen closed 2 years ago

mmgen commented 2 years ago

For some background on this situation, see: https://github.com/bitcoin/bitcoin/issues/23710

Luned commented 2 years ago

Having the same issue here on my side. Just updated Ubuntu today, and am currently unable to run my project locally. Same with my colleagues who updated.

mmgen commented 2 years ago

Having the same issue here on my side. Just updated Ubuntu today, and am currently unable to run my project locally. Same with my colleagues who updated.

Here's the workaround I came up with for my project: https://github.com/mmgen/mmgen/commit/40d90b37b8786bdf21fee382cee59efc4bfb187f

Call the wrapper routine once with no arguments and then you can use pycoin with no modification.

For reference, here's the pull request for Sipa's pure-Python implementation: https://github.com/bitcoin/bitcoin/pull/23716

Luned commented 2 years ago

@mmgen Thank you very much for sharing! This worked perfectly.

richardkiss commented 2 years ago

Should be fixed in 0.92.20220529 release.