bip-138: BIP380 content is a bare descriptor or a JSON document

This commit is contained in:
pythcoiner committed 2026-06-18 11:47:17 -04:00
1 parent d115620881
commit c6b04e23df
1 file changed
+4 -3
+4 -3
View File
@@ -353,9 +353,10 @@ payload.[^type-upgrade]
#### BIP380 Descriptor Backup Content
When `CONTENT` is `TYPE = 0x01` with `DATA = 0x017c` (BIP380), `PLAINTEXT`
is a UTF-8 JSON descriptor backup document. A bare descriptor string is not a
valid document.
When `CONTENT` is `TYPE = 0x01` with `DATA = 0x017c` (BIP380), `PLAINTEXT` is a
UTF-8 BIP380 descriptor backup. It is either a single bare descriptor string, or
a JSON descriptor backup document (for several descriptors) when the first
character is `{`.
Test vectors are in
[`bip380_descriptor_backup.json`](./bip-0138/test_vectors/bip380_descriptor_backup.json).