Commit c06b118
committed
Introduce new mandatory
Previously, the `Builder` allowed setting different entropy sources via
its `set_entropy...` methods, defaulting to sourcing from an
auto-generated seed file in the storage path. While this allowed for
really easy setup, it spared the user to actually think about where to
store their node secret.
Here, we therefore introduce a mandatory `NodeEntropy` object that, as
before, allows the user to source entropy from BIP39 Mnemonic, seed
bytes, or a seed file. However, it doesn't implement any default and
hence intentionally requires manually setup by the user. Moreover, this
API refactor also allows to reuse the same object outside of the
`Node`'s `Builder` in a future commit.NodeEntropy object1 parent 9040097 commit c06b118
File tree
16 files changed
+306
-269
lines changed- bindings
- kotlin
- ldk-node-android/lib/src/androidTest/kotlin/org/lightningdevkit/ldknode
- ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode
- python/src/ldk_node
- src
- ffi
- io
- tests
- common
16 files changed
+306
-269
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 17 | | |
21 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
| |||
80 | 94 | | |
81 | 95 | | |
82 | 96 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
| |||
107 | 117 | | |
108 | 118 | | |
109 | 119 | | |
110 | | - | |
| 120 | + | |
111 | 121 | | |
112 | | - | |
| 122 | + | |
113 | 123 | | |
114 | | - | |
| 124 | + | |
115 | 125 | | |
116 | | - | |
| 126 | + | |
117 | 127 | | |
118 | | - | |
| 128 | + | |
119 | 129 | | |
120 | 130 | | |
121 | 131 | | |
| |||
357 | 367 | | |
358 | 368 | | |
359 | 369 | | |
360 | | - | |
361 | | - | |
362 | 370 | | |
363 | 371 | | |
364 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | | - | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
0 commit comments