BIP-327: correct PartialSigAgg session-value unpacking and a typo #2260

pull SatsAndSports wants to merge 2 commits into bitcoin:master from SatsAndSports:fix-bip327-partialsigagg-arity changing 1 files +5 −3
  1. SatsAndSports commented at 4:19 PM on August 18, 2026: contributor

    Found during a review of BIP327's normative pseudocode against its reference implementation (reference.py).

    • PartialSigAgg unpacks GetSessionValues as a 7-tuple, but the algorithm returns a 6-tuple — cf. the 6-slot unpacks in Sign and PartialSigVerifyInternal, and the reference implementation itself, which passes all 56 published vector cases with the 6-slot form:

      # bip-0327/reference.py
      def get_session_values(session_ctx: SessionContext) -> Tuple[Point, int, int, int, Point, int]:
          ...
          return (Q, gacc, tacc, b, R, e)
      
    • Fix "in the of public nonces" → "in the list of public nonces".

    • Bump Version to 1.0.4 with a changelog entry, per the BIP's PATCH-version convention (precedent: #2071).

  2. BIP-327: correct PartialSigAgg session-value unpacking and a typo 0138aebb1b
  3. SatsAndSports commented at 4:32 PM on August 18, 2026: contributor

    Although I guess these changes are very small, and are essentially 'obvious' typos, and therefore a version bump isn't needed?

  4. jonatack added the label Fixups on Aug 18, 2026
  5. in bip-0327.mediawiki:486 in 0138aebb1b
     482 | @@ -483,7 +483,7 @@ Algorithm ''PartialSigVerify(psig, pubnonce<sub>1..u</sub>, pk<sub>1..u</sub>, t
     483 |  ** The tweaks ''tweak<sub>1..v</sub>'': ''v'' 32-byte arrays
     484 |  ** The tweak modes ''is_xonly_t<sub>1..v</sub>'' : ''v'' booleans
     485 |  ** The message ''m'': a byte array<ref name="mlen" />
     486 | -** The index of the signer ''i'' in the of public nonces and individual public keys with ''0 < i &le; u''
     487 | +** The index of the signer ''i'' in the list of public nonces and individual public keys with ''0 < i &le; u''
    


    jonatack commented at 7:12 PM on August 18, 2026:

    Rather than "list" or "array" here, the most consistent with the style in this BIP might be simply:

    ** The index of the signer ''i'' in the public nonces and individual public keys with ''0 < i &le; u''
    
  6. jonatack commented at 7:15 PM on August 18, 2026: member

    Although I guess these changes are very small, and are essentially 'obvious' typos, and therefore a version bump isn't needed?

    No strong opinion, but commit e2f9fe0c04123553644a (https://github.com/bitcoin/bips/pull/2071) added a similar entry (the current version).

  7. Update bip-0327.mediawiki
    Co-authored-by: Jon Atack <jon@atack.com>
    8a77dfae60
  8. jonatack commented at 8:53 PM on August 19, 2026: member

    ACK

  9. jonatack merged this on Aug 19, 2026
  10. jonatack closed this on Aug 19, 2026

  11. baslabofhd777-lab commented at 9:04 PM on August 19, 2026: none

    مساعدة

  12. SatsAndSports deleted the branch on Aug 19, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-08-20 04:10 UTC

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