mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-19 19:29:18 +00:00
bip-138 recommend sorting and deduplicating derivation paths
This commit is contained in:
@@ -202,7 +202,6 @@ specification defines version `0x01`.
|
|||||||
|
|
||||||
#### Derivation Paths
|
#### Derivation Paths
|
||||||
|
|
||||||
Note: the derivation-path vector should not contain duplicates.
|
|
||||||
Derivation paths are optional; they can be useful to simplify the recovery process
|
Derivation paths are optional; they can be useful to simplify the recovery process
|
||||||
if one has used a non-common derivation path to derive his key.[^derivation-optional]
|
if one has used a non-common derivation path to derive his key.[^derivation-optional]
|
||||||
|
|
||||||
@@ -256,6 +255,11 @@ included.
|
|||||||
the current path.
|
the current path.
|
||||||
`CHILD`: 4-byte big-endian unsigned integer representing a child index per BIP-32.
|
`CHILD`: 4-byte big-endian unsigned integer representing a child index per BIP-32.
|
||||||
|
|
||||||
|
The derivation-path vector SHOULD be encoded in lexicographic order. This avoids
|
||||||
|
leaking information through implementation-specific ordering. The vector SHOULD NOT
|
||||||
|
contain duplicates. Implementations SHOULD deduplicate paths during encoding or
|
||||||
|
parsing.
|
||||||
|
|
||||||
#### Individual Secrets
|
#### Individual Secrets
|
||||||
|
|
||||||
At least one individual secret must be supplied.[^no-fingerprints]
|
At least one individual secret must be supplied.[^no-fingerprints]
|
||||||
|
|||||||
Reference in New Issue
Block a user