Skip to content

Add RIPEMPD160 implementation #276

Closed
noahfx wants to merge 1 commit intopetertodd:masterfrom
noahfx:master
Closed

Add RIPEMPD160 implementation #276
noahfx wants to merge 1 commit intopetertodd:masterfrom
noahfx:master

Conversation

@noahfx
Copy link

@noahfx noahfx commented Jul 20, 2022

Hi,

I'm the maintainer of python-bitcoinlib for the Debian Operative System. OpenSSL 3 has disabled various legacy hash functions by moving them to a legacy provider that isn't enabled by default, including RIRPEMD160.

Since May Debian ships OpenSSL 3 which has dropped the support for RIPEMD160 breaking python-bitcoinlib raising the following error:
E ValueError: unsupported hash type ripemd160

This PR adds the pure Python implementation based on the implementation from the embit project.

@kanzure
Copy link
Collaborator

kanzure commented Jul 20, 2022

Is this covered by existing unit tests? Perhaps these: https://github.com/petertodd/python-bitcoinlib/blob/master/bitcoin/tests/test_wallet.py

@noahfx
Copy link
Author

noahfx commented Jul 20, 2022

@kanzure The whole test suite is broken when running using OpenSSL 3 . Here's the bug report that led to this finding:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011701.
After making this change the tests pass

@kanzure
Copy link
Collaborator

kanzure commented Jul 20, 2022

@petertodd
Copy link
Owner

Fixed with #277, which also had a test suite. Thanks!

@petertodd petertodd closed this Aug 3, 2022
@petertodd
Copy link
Owner

@kanzure do you want to make a new python-bitcoinlib release that fixes this, or should I?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants