Struan Clark 2 лет назад
Родитель
Сommit
f3280c2e9e
2 измененных файлов с 20 добавлено и 10 удалено
  1. 16 6
      README.md
  2. 4 4
      helpers/flipbip_file.c

+ 16 - 6
README.md

@@ -34,16 +34,26 @@ The application will be compiled and copied onto your device
   - Generation of offline `m/44'/0'/0'/0` BTC wallet
   - Generation of offline `m/44'/60'/0'/0` ETH wallet (coded from the $SPORK Castle of ETHDenver 2023!)
   - Similar features to: https://iancoleman.io/bip39/
+- Saving wallets to SD card
+  - Wallets are saved to SD card upon creation in `apps_data/flipbip`
+      - NOTE: `apps_data` folder must already exist on SD card!
+  - Saved wallets can be viewed between app runs
+  - Wallets are encrypted with a randomly generated key, and that key is also encrypted
+      - `.flipbip.dat` and `.flipbip.key` files are both required to be in `apps_data/flipbip`
+      - Backups of both these files `.flipbip.dat.bak` and `.flipbip.key.bak` are also maintained
+      - If you want to externally back up your wallet, I recommend copying all these files, and storing the `key` and `dat` files seperately
+  - NOTE: The wallets should be decently tough to crack off of a Flipper, however any Flipper with the app installed can load a wallet in the `apps_data/flipbip` directory if both the `key` and `dat` file are present
 
 ### Work in Progress
 
-- Support for BIP39 passphrase
-  - Currently blank
-- Support for more custom BIP32 wallet paths
-  - Currently hardcoded to `m/44'/0'/0'/0`
+- More coin types
+  - Support for more custom BIP32 wallet paths
+  - Currently hardcoded to `m/44'/0'/0'/0` and `m/44'/60'/0'/0`
 
 ### (FAR) Future
 
-- More coin types
-- Saving wallets to disk
+- Custom wallet security
+  - User specified password
+- Support for BIP39 passphrase
+  - Currently blank
 - USB/Bluetooth wallet functionality

+ 4 - 4
helpers/flipbip_file.c

@@ -7,11 +7,11 @@
 #include <storage/storage.h>
 
 #define FLIPBIP_APP_BASE_FOLDER EXT_PATH("apps_data/flipbip")
-// #define FLIPBIP_DAT_FILE_NAME ".flipbip.dat"
-#define FLIPBIP_DAT_FILE_NAME ".flipbip.dat.txt"
+#define FLIPBIP_DAT_FILE_NAME ".flipbip.dat"
+// #define FLIPBIP_DAT_FILE_NAME ".flipbip.dat.txt"
 #define FLIPBIP_DAT_FILE_NAME_BAK ".flipbip.dat.bak"
-// #define FLIPBIP_KEY_FILE_NAME ".flipbip.key"
-#define FLIPBIP_KEY_FILE_NAME ".flipbip.key.txt"
+#define FLIPBIP_KEY_FILE_NAME ".flipbip.key"
+// #define FLIPBIP_KEY_FILE_NAME ".flipbip.key.txt"
 #define FLIPBIP_KEY_FILE_NAME_BAK ".flipbip.key.bak"
 #define FLIPBIP_DAT_PATH FLIPBIP_APP_BASE_FOLDER "/" FLIPBIP_DAT_FILE_NAME
 #define FLIPBIP_DAT_PATH_BAK FLIPBIP_APP_BASE_FOLDER "/" FLIPBIP_DAT_FILE_NAME_BAK