Skip to content

Commit

Permalink
turn off options to shrink binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
xtruan committed Mar 3, 2023
1 parent e3f289d commit ea660eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crypto/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@

// implement BIP32 caching
#ifndef USE_BIP32_CACHE
#define USE_BIP32_CACHE 1
#define USE_BIP32_CACHE 0
#define BIP32_CACHE_SIZE 10
#define BIP32_CACHE_MAXDEPTH 8
#endif

// support constructing BIP32 nodes from ed25519 and curve25519 curves.
#ifndef USE_BIP32_25519_CURVES
#define USE_BIP32_25519_CURVES 1
#define USE_BIP32_25519_CURVES 0
#endif

// implement BIP39 caching
#ifndef USE_BIP39_CACHE
#define USE_BIP39_CACHE 1
#define USE_BIP39_CACHE 0
#define BIP39_CACHE_SIZE 4
#endif

Expand Down
2 changes: 2 additions & 0 deletions views/flipbip_scene_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ static void flipbip_scene_1_model_init(FlipBipScene1Model* const model, const in
memzero(seed, sizeof(seed));
free(seed);

#if USE_BIP39_CACHE
// Clear the BIP39 cache
bip39_cache_clear();
#endif
}

bool flipbip_scene_1_input(InputEvent* event, void* context) {
Expand Down

0 comments on commit ea660eb

Please sign in to comment.