BIP-139: record the BIP-377 capabilities of a device #2369

pull pythcoiner wants to merge 1 commits into bitcoin:master from pythcoiner:139_cap changing 1 files +11 −0
  1. pythcoiner commented at 9:55 AM on November 25, 2026: contributor

    No description provided.

  2. BIP-139: record the BIP-377 capabilities of a device a706a23cef
  3. jonatack added the label BIP Update by Owner on Nov 30, 2026
  4. in bip-0139/field-registry.md:217 in a706a23cef
     211 | @@ -212,6 +212,9 @@ The device object may contain any of these fields.
     212 |  | transports          | optional | array     | Media over which the device can be reached, in     |
     213 |  |                     |          |           | order of preference. See Device Transports.        |
     214 |  |---------------------|----------|-----------|----------------------------------------------------|
     215 | +| bip377_capabilities | optional | array     | BIP-0377 capabilities the device advertised. See   |
     216 | +|                     |          |           | Device Capabilities.                               |
     217 | +|---------------------|----------|-----------|----------------------------------------------------|
    


    jonatack commented at 4:37 PM on December 2, 2026:

    Could add a dependencies meta-header at the top (verify which BIPs but looks like these)

    Requires: 32, 39, 85, 138, 174, 329, 352, 370, 377, 380, 388, 392
    

    Note that 377 isn't merged yet.

  5. in bip-0139/field-registry.md:252 in a706a23cef
     246 | @@ -244,6 +247,14 @@ The `transports` array may contain any of the following values.
     247 |  Entries are ordered by preference, most preferred first. An importer MUST ignore a
     248 |  value it does not know rather than reject the whole array.
     249 |  
     250 | +### Device Capabilities
     251 | +
     252 | +The `bip377_capabilities` field is an array of unsigned 32-bit integers, as last
    


    jonatack commented at 4:40 PM on December 2, 2026:

    Could explain somewhere (PR description, commit message, or here) why uint32, and rationale in general.

    IIUC, PR #2353 (bip-0377.md) doesn't currently specify extensions will be additional 32-bit bitfields, only that bit 31 signals capabilities beyond CAPABILITIES and future message fields are appended. Pre-committing bip377_capabilities to uint32[] works if BIP-377 v2+ adds 32-bit capability words, perhaps it's worth confirming if you intend that coupling.

    Is an empty array disallowed, or treated as absent?

    JSON encoding clarity: maybe add an inline example (e.g., [7] or [255], matching the style of bip352_labels using ([0, 1, 2]) and PR #2368 using 1.2.3-rc2) removes any chance of implementers encoding hex strings instead of JSON numbers.

  6. in bip-0139/field-registry.md:255 in a706a23cef
     246 | @@ -244,6 +247,14 @@ The `transports` array may contain any of the following values.
     247 |  Entries are ordered by preference, most preferred first. An importer MUST ignore a
     248 |  value it does not know rather than reject the whole array.
     249 |  
     250 | +### Device Capabilities
     251 | +
     252 | +The `bip377_capabilities` field is an array of unsigned 32-bit integers, as last
     253 | +reported by the device. The first entry is the BIP-0377 `CAPABILITIES` bitfield, bit 0
     254 | +being the least significant bit. Later entries are reserved for the capability fields
     255 | +a later version of BIP-0377 may add. An importer MUST ignore an entry or a bit it does
    


    jonatack commented at 4:48 PM on December 2, 2026:

    Assuming you didn't mean to ignore invalid non-uint32 values at index 0, perhaps:

    a later version of BIP-0377 may add. An importer MUST ignore additional entries or bits it does
    
  7. jonatack commented at 4:53 PM on December 2, 2026: member

    Concept ACK

    The PR description should explain the change and explicitly note the dependency on (as-yet unmerged) #2353.

    Note that this BIP (Field Registry) says a registration should link a test vector or an implementation using it, when available.

  8. jonatack added the label PR Author action required on Dec 2, 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-12-03 01:42 UTC