1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-10-19 19:29:18 +00:00

bip-138 sync test vectors with the reference implementation

This commit is contained in:
pythcoiner
2026-07-15 00:39:22 -04:00
parent c1170d4634
commit ca0722ce39
3 changed files with 96 additions and 15 deletions

View File

@@ -69,6 +69,36 @@
"paths": ["m/49'/0'/0'"],
"expected": "0103800000318000000080000000"
},
{
"description": "Common fallback path: m/49'/0'/9'",
"paths": ["m/49'/0'/9'"],
"expected": "0103800000318000000080000009"
},
{
"description": "Common fallback path: m/84'/1'/9'",
"paths": ["m/84'/1'/9'"],
"expected": "0103800000548000000180000009"
},
{
"description": "Common fallback path: m/86'/1'/9'",
"paths": ["m/86'/1'/9'"],
"expected": "0103800000568000000180000009"
},
{
"description": "Fallible fallback path: m/87'/1'/9'",
"paths": ["m/87'/1'/9'"],
"expected": "0103800000578000000180000009"
},
{
"description": "Common fallback path: m/48'/0'/9'/1'",
"paths": ["m/48'/0'/9'/1'"],
"expected": "010480000030800000008000000980000001"
},
{
"description": "Common fallback path: m/48'/1'/9'/2'",
"paths": ["m/48'/1'/9'/2'"],
"expected": "010480000030800000018000000980000002"
},
{
"description": "Single path with 255 children (maximum depth, success)",
"paths": ["m/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0"],