- Add empty list check with ValueError
- Replace zero key return with InvalidContributionError for identical keys
- Prevent potential cryptographic vulnerabilities from zero key usage
fix: Improve get_second_key security by removing zero key return #1761
pull crStiv wants to merge 1 commits into bitcoin:master from crStiv:фффф changing 1 files +3 −1-
crStiv commented at 12:44 AM on February 11, 2025: none
-
Update reference.py 99b30447b1
- murchandamus added the label Proposed BIP modification on Feb 12, 2025
- murchandamus added the label Pending acceptance on Feb 12, 2025
-
murchandamus commented at 4:55 PM on February 12, 2025: contributor
-
jonasnick commented at 5:40 PM on February 12, 2025: contributor
Hi @crStiv,
Returning the representation for the point at infinity is intentional. This is also what the BIPs pseudocode specifies. I see no reason to change this.
Moreover, this PR would break the BIPs ability to identify disruptive signers (see section in the BIP). If the public keys are all the same and you abort, you do not know who generated the key honestly and who has just copied it.
- jonatack closed this on Feb 13, 2025