mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-19 19:29:18 +00:00
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.
46 lines
1.4 KiB
JSON
46 lines
1.4 KiB
JSON
[
|
|
{
|
|
"description": "Descriptor with change descriptor",
|
|
"valid": true,
|
|
"document": {
|
|
"version": 1,
|
|
"descriptor_sets": [
|
|
{
|
|
"archived": false,
|
|
"birth_time": 1710000000,
|
|
"range": [0, 999],
|
|
"descriptor": "wpkh([d34db33f/84h/1h/0h]tpubDC5FSnBiZDMmhiuCmWAYsLwgLYrrT9rAqvTySfuCCrgsWz8wxMXUS9Tb9iVMvcRbvFcAHGkMD5Kx8koh4GquNGNTfohfk7pgjhaPCdXpoba/0/*)",
|
|
"change_descriptor": "wpkh([d34db33f/84h/1h/0h]tpubDC5FSnBiZDMmhiuCmWAYsLwgLYrrT9rAqvTySfuCCrgsWz8wxMXUS9Tb9iVMvcRbvFcAHGkMD5Kx8koh4GquNGNTfohfk7pgjhaPCdXpoba/1/*)"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"description": "BIP389 multipath descriptor",
|
|
"valid": true,
|
|
"document": {
|
|
"version": 1,
|
|
"descriptor_sets": [
|
|
{
|
|
"archived": false,
|
|
"birth_time": 1710000000,
|
|
"range": [0, 999],
|
|
"descriptor": "wpkh([d34db33f/84h/1h/0h]tpubDC5FSnBiZDMmhiuCmWAYsLwgLYrrT9rAqvTySfuCCrgsWz8wxMXUS9Tb9iVMvcRbvFcAHGkMD5Kx8koh4GquNGNTfohfk7pgjhaPCdXpoba/<0;1>/*)"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"description": "Receive-only descriptor set without optional metadata",
|
|
"valid": true,
|
|
"document": {
|
|
"version": 1,
|
|
"descriptor_sets": [
|
|
{
|
|
"descriptor": "wpkh([d34db33f/84h/1h/0h]tpubDC5FSnBiZDMmhiuCmWAYsLwgLYrrT9rAqvTySfuCCrgsWz8wxMXUS9Tb9iVMvcRbvFcAHGkMD5Kx8koh4GquNGNTfohfk7pgjhaPCdXpoba/0/*)"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|