Commit 1179ea2
committed
Merge #863: fix(keymap): use correct
2f72b27 fix(keymap): use correct `derivation_path` for keys with origin (Leonardo Lima)
Pull request description:
- Fixes the implementation of `GetKey` for `KeyRequest::Bip32` when there's `Xpriv` has an origin, and it matches with the given `KeyRequest::Bip32` derivation_path. It should strip the matching part, to correctly derive the key at the correct child number.
- Updates the existing test to the correct and expected behavior.
ACKs for top commit:
apoelstra:
ACK 2f72b27; successfully ran local tests
Tree-SHA512: 0357a1fec8076b64c3e47a5373c20630621b3fd05687a98af08fb34b186c58c0c086a7a3eee674397860df9b4cb891c2e1d68b66623e836824f0f5498029a2c4derivation_path for keys with origin1 file changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
326 | | - | |
327 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
328 | 335 | | |
| 336 | + | |
329 | 337 | | |
330 | | - | |
| 338 | + | |
331 | 339 | | |
332 | 340 | | |
333 | 341 | | |
| |||
0 commit comments