mirror of
https://github.com/bitcoin/bips.git
synced 2026-11-09 19:47:16 +00:00
bip-138 add test vectors for sorting and deduplication
This commit is contained in:
1 parent
86e10c907e
commit
ea221577df
2 files changed
+27
No files matched your search
@@ -59,6 +59,16 @@
|
||||
"paths": ["m/0", "m/1"],
|
||||
"expected": "0201000000000100000001"
|
||||
},
|
||||
{
|
||||
"description": "Unsorted paths are sorted when encoded",
|
||||
"paths": ["m/84'/0'/0'/2'", "m/0/1'/2/3'"],
|
||||
"expected": "0204000000008000000100000002800000030480000054800000008000000080000002"
|
||||
},
|
||||
{
|
||||
"description": "Duplicate paths are deduplicated",
|
||||
"paths": ["m/1", "m/0", "m/1"],
|
||||
"expected": "0201000000000100000001"
|
||||
},
|
||||
{
|
||||
"description": "BIP-44 account 0: m/44'/0'/0'",
|
||||
"paths": ["m/44'/0'/0'"],
|
||||
|
||||
Reference in new issue
Block a user