Skip to content

Conversation

theStack
Copy link
Contributor

@theStack theStack commented Jun 3, 2024

This method was introduced as a pre-requirement for the v2 transport protocol back then (see PR #14047, commit 463921b), when it was still BIP151. With the replacement BIP324, this is not needed anymore, and it's also unlikely that for any other proposal we'd ever need to negate private keys at this abstraction level. I'd argue that this operation is usually something that should happen within a secp256k1 module (like e.g. done in MuSig2, Silent Payments...).

(If there is really demand in the future, it's also trivial to reintroduce the method.)

This method was introduced as a pre-requirement for the v2 transport
protocol back then (see PR bitcoin#14047, commit 463921b), when it was still
BIP151. With the replacement BIP324, this is not needed anymore, and
it's also unlikely that any other proposal would need to negate private
keys at this abstraction level.
(If there is really demand, it's trivial to reintroduce the method.)
@DrahtBot
Copy link
Contributor

DrahtBot commented Jun 3, 2024

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK laanwj, sipa, achow101

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@laanwj
Copy link
Member

laanwj commented Jun 4, 2024

ACK 8801e31
There are no API consistency arguments to keep this, negating isn't a conventional thing for keys.

@sipa
Copy link
Member

sipa commented Jun 4, 2024

ACK 8801e31

1 similar comment
@achow101
Copy link
Member

achow101 commented Jun 5, 2024

ACK 8801e31

@achow101 achow101 merged commit 23b3dc2 into bitcoin:master Jun 5, 2024
@theStack theStack deleted the 202406-remove_unused_key_negate branch June 5, 2024 02:07
@bitcoin bitcoin locked and limited conversation to collaborators Jun 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants