Commit 0ef9228
feat(abstract-lightning): add utility to compute BIP32 derivation index
Add a utility function that computes a BIP32 derivation index from a seed
string. The function uses SHA256 to generate a deterministic index value
within the valid range for BIP32 derivation paths.
Issue: BTC-2202
Co-authored-by: llm-git <[email protected]>1 parent 8a75e82 commit 0ef9228
File tree
2 files changed
+16
-0
lines changed- modules/abstract-lightning
- src/lightning
- test/unit/lightning
2 files changed
+16
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
128 | 135 | | |
0 commit comments