export der always compressed #14102

pull fingera wants to merge 2 commits into bitcoin:master from fingera:3-export-der changing 2 files +16 −5
  1. fingera commented at 6:11 AM on August 30, 2018: contributor

    No description provided.

  2. always compressed 9bf6b1f2d2
  3. laanwj commented at 6:16 AM on August 30, 2018: member

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

    Also please add at least a test for the new behavior

  4. randolf changes_requested
  5. randolf commented at 6:28 AM on August 30, 2018: contributor

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

  6. fingera commented at 6:30 AM on August 30, 2018: contributor

    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); }

  7. add test case 86c877d0d8
  8. DrahtBot commented at 7:18 AM on August 30, 2018: member

    <!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:

    • #14047 (Add HKDF_HMAC256_L32 and method to negate a private key by jonasschnelli)
    • #12461 (scripted-diff: Rename key size consts to be relative to their class by Empact)

    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.

  9. laanwj commented at 4:11 PM on September 10, 2018: member

    Closing, as the goal here has not been explained

  10. laanwj closed this on Sep 10, 2018

  11. fingera commented at 1:10 AM on September 11, 2018: contributor

    it is a bug for ec_privkey_export_der

  12. sipa commented at 1:25 AM on September 11, 2018: member

    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).

  13. fingera commented at 1:37 AM on September 11, 2018: contributor

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

  14. fingera commented at 1:37 AM on September 11, 2018: contributor
  15. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me