Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ GIT_DESCRIBE=$(shell git describe --tags --abbrev=8 --always --long --dirty 2>/d
VERSION_TAG=$(shell echo $(GIT_DESCRIBE) | sed 's/^v//g')
APPVERSION_M=1
APPVERSION_N=6
APPVERSION_P=4
APPVERSION_P=5
APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)
APPNAME = "Mina"

Expand Down
9 changes: 0 additions & 9 deletions src/menu_bagl.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@

static char blindsign_text[20];

bool is_blindsign_enabled(void) {
return N_storage.blindsign_enabled == 0x01;
}

void toggle_blindsign(void) {
uint8_t value = N_storage.blindsign_enabled ? 0x00 : 0x01;
nvm_write((void*)&N_storage.blindsign_enabled, &value, sizeof(value));
}

static void update_blindsign_text(void) {
if (is_blindsign_enabled()) {
strcpy(blindsign_text, "Enabled");
Expand Down
10 changes: 10 additions & 0 deletions src/menu_common.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "menu.h"

bool is_blindsign_enabled(void) {
return N_storage.blindsign_enabled == 0x01;
}

void toggle_blindsign(void) {
uint8_t value = N_storage.blindsign_enabled ? 0x00 : 0x01;
nvm_write((void*)&N_storage.blindsign_enabled, &value, sizeof(value));
}
9 changes: 0 additions & 9 deletions src/menu_nbgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ static const nbgl_contentInfoList_t infoList = {
.infoContents = infoContents,
};

bool is_blindsign_enabled(void) {
return N_storage.blindsign_enabled == 0x01;
}

void toggle_blindsign(void) {
uint8_t value = N_storage.blindsign_enabled ? 0x00 : 0x01;
nvm_write((void*)&N_storage.blindsign_enabled, &value, sizeof(value));
}

enum {
BLIND_SIGNING_TOKEN = FIRST_USER_TOKEN,
};
Expand Down
3 changes: 3 additions & 0 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ static const char HEX_CHARS[] = "0123456789abcdef";

void bytes_to_hex_display(char *out, size_t out_len, const uint8_t *in, size_t in_len)
{
if (out == NULL || in == NULL || out_len == 0) {
return;
}
// Convert bytes to hex string, reversing byte order for big-endian display
for (size_t i = 0; i < in_len && (i * 2 + 1) < out_len; i++) {
uint8_t byte = in[in_len - 1 - i]; // Reverse for big-endian display
Expand Down
Binary file modified tests_zemu/snapshots/ap-mainmenu/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/fl-mainmenu/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests_zemu/tests/standard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('Standard', function () {
const resp = await app.getAppVersion()
console.log(resp)

expect(resp.version).toEqual('1.6.4')
expect(resp.version).toEqual('1.6.5')
} finally {
await sim.close()
}
Expand Down
Loading