You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bip-0329.mediawiki
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ It is also a convenient format for command-line processing, which is often line-
44
44
45
45
Further to the JSON Lines specification, an export of labels from a wallet must be a UTF-8 encoded text file, containing one record per line consisting of a valid JSON object.
46
46
Lines are separated by <tt>\n</tt>. Multiline values are not permitted.
47
-
Each JSON object must contain 3 key/value pairs, defined as follows:
47
+
Each JSON object must contain 3 or 4 key/value pairs, defined as follows:
48
48
49
49
{| class="wikitable"
50
50
|-
@@ -59,6 +59,9 @@ Each JSON object must contain 3 key/value pairs, defined as follows:
59
59
|-
60
60
| <tt>label</tt>
61
61
| The label applied to the reference
62
+
|-
63
+
| <tt>origin</tt>
64
+
| Optional key origin information referencing the wallet associated with the label
62
65
|}
63
66
64
67
The reference is defined for each <tt>type</tt> as follows:
@@ -94,14 +97,17 @@ The reference is defined for each <tt>type</tt> as follows:
If present, the optional <tt>origin</tt> property must contain key origin information as defined by BIP380<ref>[https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki BIP-0380]</ref>, without the opening or closing brackets.
101
+
This property should be used to disambiguate labels from different wallets contained in the same export, particularly when exporting multiple accounts derived from the same seed.
102
+
97
103
Care should be taken when exporting due to the privacy sensitive nature of the data.
98
104
Encryption in transit over untrusted networks is highly recommended, and encryption at rest should also be considered.
99
105
Unencrypted exports should be deleted as soon as possible.
100
106
For security reasons no private key types are defined.
101
107
102
108
==Importing==
103
109
104
-
* An importing wallet may ignore records it does not store, and truncate labels if necessary.
110
+
* An importing wallet may ignore records it does not store, and truncate labels if necessary. A suggested default for maximum label length is 255 characters, and an importing wallet should consider warning the user if truncation is applied.
105
111
* Wallets importing public key records may derive addresses from them to match against known wallet addresses.
106
112
* Wallets importing extended public keys may match them against signers, for example in a multisig setup.
107
113
@@ -114,7 +120,7 @@ However, importing wallets complying to this specification may ignore types not
114
120
115
121
The following fragment represents a wallet label export:
0 commit comments