From c6b04e23dfb959be3675cefbf06d97f06e235f08 Mon Sep 17 00:00:00 2001 From: pythcoiner Date: Thu, 18 Jun 2026 07:07:45 -0400 Subject: [PATCH] bip-138: BIP380 content is a bare descriptor or a JSON document --- bip-0138.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bip-0138.md b/bip-0138.md index 410cbbb6..10a03868 100644 --- a/bip-0138.md +++ b/bip-0138.md @@ -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).