status-go/api
Alex Jbanca 3978048afa
feat: Make DB re-encryption fault proof (#3607)
Improve the error management in order to avoid DB corruption in case the process is killed while encrypting the DB.

Changes:
Use sqlcipher_export instead of rekey to change the DB password. The advantage is that sqlcipher_export will operate on a new DB file and we don't need to modify the current account unless the export is successful.
Keeping the rekey requires to create a DB copy before trying to re-encrypt the DB, but the DB copy is risky in case the DB file changes wile the copy is in progress. It could also lead to DB corruption.
2023-06-14 13:12:23 +03:00
..
multiformat Add spiff workflow cmd 2023-03-16 14:31:34 +00:00
.gitignore Fix some tests & upgrade contracts 2021-07-20 10:57:38 +02:00
app_state.go Clean api package (#1055) 2018-06-27 10:11:45 +02:00
app_state_test.go Clean api package (#1055) 2018-06-27 10:11:45 +02:00
backend.go upgrade ethereum 2022-10-26 09:39:30 +02:00
backend_test.go Fix/mobile issue 16043 (#3560) 2023-06-01 20:57:05 +08:00
create_account_and_login_test.go Fix/mobile issue 15899 : error when trying login under updated password (#3493) 2023-05-18 22:00:55 +08:00
default_networks.go Add LoginAccount endpoint 2023-06-01 10:05:11 +01:00
default_networks_test.go Add LoginAccount endpoint 2023-06-01 10:05:11 +01:00
defaults.go Allow setting up wallet with new config 2023-05-19 13:23:21 +01:00
geth_backend.go feat: Make DB re-encryption fault proof (#3607) 2023-06-14 13:12:23 +03:00
test_helpers.go Changes necessary to restore wallet on mobile app 2023-05-25 21:08:34 +02:00
utils.go synchronize display name (#2989) 2022-12-29 14:16:19 +08:00
utils_test.go tests: updated due to updating old accounts as a part of migration process 2023-03-28 16:19:27 +02:00