Commit ac622ca
committed
New encrypted wallet file header:
- the file is encrypted with a master key
- the master key is encrypted with one or several passwords
- passwords can be added to or removed from the list
- a hmac of the file is written at the beginning of the file
- passwords can be checked/updated without having to read/write the whole file
- the GUI assumes a single password
- partial writes:
encrypted blobs are appended at the end of the file
each blob is prefixed by its length
can recover from incomplete write: hmac is updated after appending1 parent cb7e550 commit ac622ca
File tree
7 files changed
+325
-114
lines changed- electrum
- gui/qt
- tests
7 files changed
+325
-114
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | | - | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1955 | 1955 | | |
1956 | 1956 | | |
1957 | 1957 | | |
1958 | | - | |
1959 | | - | |
| 1958 | + | |
| 1959 | + | |
1960 | 1960 | | |
1961 | 1961 | | |
1962 | 1962 | | |
1963 | 1963 | | |
1964 | 1964 | | |
1965 | | - | |
| 1965 | + | |
1966 | 1966 | | |
1967 | 1967 | | |
1968 | 1968 | | |
| |||
0 commit comments