mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-19 19:29:18 +00:00
bip-138: BIP380 content is a bare descriptor or a JSON document
This commit is contained in:
@@ -353,9 +353,10 @@ payload.[^type-upgrade]
|
|||||||
|
|
||||||
#### BIP380 Descriptor Backup Content
|
#### BIP380 Descriptor Backup Content
|
||||||
|
|
||||||
When `CONTENT` is `TYPE = 0x01` with `DATA = 0x017c` (BIP380), `PLAINTEXT`
|
When `CONTENT` is `TYPE = 0x01` with `DATA = 0x017c` (BIP380), `PLAINTEXT` is a
|
||||||
is a UTF-8 JSON descriptor backup document. A bare descriptor string is not a
|
UTF-8 BIP380 descriptor backup. It is either a single bare descriptor string, or
|
||||||
valid document.
|
a JSON descriptor backup document (for several descriptors) when the first
|
||||||
|
character is `{`.
|
||||||
|
|
||||||
Test vectors are in
|
Test vectors are in
|
||||||
[`bip380_descriptor_backup.json`](./bip-0138/test_vectors/bip380_descriptor_backup.json).
|
[`bip380_descriptor_backup.json`](./bip-0138/test_vectors/bip380_descriptor_backup.json).
|
||||||
|
|||||||
Reference in New Issue
Block a user