musig: Reject empty pubkey list in GetMuSig2KeyAggCache #35316

pull nervana21 wants to merge 1 commits into bitcoin:master from nervana21:reject-empty-pubkey-list changing 2 files +10 −0
  1. nervana21 commented at 3:33 PM on May 18, 2026: contributor

    Per BIP327, MuSig2 key aggregation is defined for u public keys where 0 < u < 2^32.

    Previously, the code did not handle u == 0.

    This patch updates the code to reject an empty pubkey list and adds a regression test.

  2. musig: Reject empty pubkey list in GetMuSig2KeyAggCache 8ce84321ce
  3. DrahtBot commented at 3:33 PM on May 18, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35316.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

Contributors

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-19 06:51 UTC