bip-138 recommend sorting and deduplicating derivation paths

This commit is contained in:
pythcoiner committed 2026-07-15 01:31:30 -04:00
1 parent ca0722ce39
commit 86e10c907e
1 file changed
+5 -1
+5 -1
View File
@@ -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]