Skip to content

Backport fix for deriving public keys from private ones to version3 #1627

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

Open
wants to merge 3 commits into
base: version3
Choose a base branch
from

Conversation

quapka
Copy link

@quapka quapka commented Apr 1, 2025

This is a backport of a bug fix to version3. More details are available in #1623 and #1624.

The fix is the same, also the tests were just copy-pasted. I've also split the tests into the respective files.

However, I am a bit unclear on the test naming. What is expected suffix supposed to mean?

quapka added 3 commits April 1, 2025 15:31
In case `hd_private` is invalid,  the `to_public()` derivation
should fail. The `hd_private` might be invalid from various reasons,
such as deserializing invalid key or derived, using `derive_private`
into an invalid one.

Finally, nitpick: `return {};` is enclosed in curly brackets to make the
if statement scope explicit.
@evoskuil
Copy link
Member

evoskuil commented Apr 1, 2025

The 4th segment of the name is the test expectation. Whatever the test expects to happen. https://github.com/libbitcoin/libbitcoin-system/wiki/Test-Guide

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.

2 participants