bip138: clarify receive-only descriptor sets

Make change_descriptor explicitly optional for non-multipath descriptors.
Add a receive-only document vector with no change descriptor or optional
metadata; the existing vectors cover a receive/change pair and multipath.
This commit is contained in:
Sjors Provoost committed 2026-09-23 13:55:04 +02:00
1 parent bf63783c10
commit 51995cc228
2 files changed
+14 -1

No files matched your search

+2 -1
View File
@@ -474,7 +474,8 @@ For BIP389 multipath descriptors, `/<0;1>` means receive and change,
respectively. The `change_descriptor` field MUST NOT be used.
For descriptors without BIP389 multipath key expressions, `descriptor` is the
receive descriptor and `change_descriptor` is the change descriptor.
receive descriptor. The optional `change_descriptor` string can be omitted for a
receive-only set.
If optional boolean `archived` is `true`, importing wallets SHOULD NOT use the
descriptor set for new address generation.