A bip388 account descriptor was said to be a string, but a BIP-388 wallet policy is a descriptor template plus a vector of key information, which one string does not hold. It is now stored as a two-element array: the key information expressions, then the template, with an example from BIP-388.
BIP-139: define the bip388 account descriptor as [keys, policy] #2367
pull pythcoiner wants to merge 1 commits into bitcoin:master from pythcoiner:139_388 changing 2 files +25 −3-
pythcoiner commented at 5:13 AM on November 25, 2026: contributor
-
59a78f7ad4
BIP-139: define the bip388 account descriptor as [keys, policy]
A bip388 account descriptor was said to be a string, but a BIP-388 wallet policy is a descriptor template plus a vector of key information, which one string does not hold. Store it as a two-element array: the key information expressions, then the template, with an example from BIP-388.
- jonatack added the label BIP Update by Owner on Nov 30, 2026
-
in bip-0139/field-registry.md:65 in 59a78f7ad4
59 | @@ -60,7 +60,9 @@ Fields of the [account object][accountobj]. 60 | | | | | Structure for the permitted values. | 61 | |--------------------|----------|-----------------|------------------------------------------------| 62 | | descriptor | | string/array | Account descriptor. Its structure is defined | 63 | -| | | | by `type`. See Account Object Structure. | 64 | +| | | | by `type`: a string, an array of strings for | 65 | +| | | | `multi_bip380`, or `[keys, policy]` for | 66 | +| | | | `bip388`. See Account Object Structure. |
jonatack commented at 11:16 PM on December 2, 2026:In this file in Key Fields,
proof_of_registrationspecifies:Pairs of [descriptor, proof] for this key. Both are strings; the proof is lowercase hexadecimal.For a BIP388 account, should the first element be the compiled BIP380 multipath descriptor string, or should it also allow [keys, policy]?
jonatack commented at 11:18 PM on December 2, 2026:Also in this file, in Device object,
descriptor_checksumspecifies:Checksum of the descriptor that registered applies to.Since BIP388 does not define a checksum on wallet policies, is this computed over the compiled BIP380 descriptor, or unused for BIP388?
jonatack commented at 11:19 PM on December 2, 2026: memberLGTM with two questions for here or a follow-up
jonatack added the label PR Author action required on Dec 2, 2026Contributors
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
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