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

export der always compressed #14102

Closed
wants to merge 2 commits into from
Closed

Conversation

fingera
Copy link
Contributor

@fingera fingera commented Aug 30, 2018

No description provided.

@laanwj
Copy link
Member

laanwj commented Aug 30, 2018

Please add rationale to your OP, why is this change?

Also please add at least a test for the new behavior

Copy link
Contributor

@randolf randolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the description of what this PR does (at present there is no description). Thank you.

@fingera
Copy link
Contributor Author

fingera commented Aug 30, 2018

BOOST_AUTO_TEST_CASE(key_priv_compress_tests)
{
CKey key;
key.MakeNewKey(false);
BOOST_CHECK(key.GetPrivKey().size() == CKey::PRIVATE_KEY_SIZE);
key.MakeNewKey(true);
BOOST_CHECK(key.GetPrivKey().size() == CKey::COMPRESSED_PRIVATE_KEY_SIZE);
}

@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 30, 2018

Note to reviewers: This pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@laanwj
Copy link
Member

laanwj commented Sep 10, 2018

Closing, as the goal here has not been explained

@laanwj laanwj closed this Sep 10, 2018
@fingera
Copy link
Contributor Author

fingera commented Sep 11, 2018

it is a bug for ec_privkey_export_der

@sipa
Copy link
Member

sipa commented Sep 11, 2018

Please provide a longer rationale. The exported keys seem to work fine so far, so unless you can demonstrate there is a problem with them, this change seems pointless (and wrong; private keys with uncompressed pubkeys should use uncompressed DER in their export).

@fingera
Copy link
Contributor Author

fingera commented Sep 11, 2018

Is it changing ec_privkey_export_der? Delete another branch that will never be reached

@fingera
Copy link
Contributor Author

fingera commented Sep 11, 2018

#14195

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants