Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #44 from LedgerHQ/develop
Browse files Browse the repository at this point in the history
Stable release v2.3.2
  • Loading branch information
lpascal-ledger authored May 4, 2022
2 parents a4bf6af + 6793ac5 commit 218cff2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ GIT_DESCRIBE ?= $(shell git describe --tags --abbrev=8 --always --long --dirty 2

VERSION_TAG ?= $(shell echo "$(GIT_DESCRIBE)" | cut -f1 -d-)
APPVERSION_M=2
APPVERSION_N=2
APPVERSION_P=15
APPVERSION_N=3
APPVERSION_P=2
APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)

# Only warn about version tags if specified/inferred
Expand Down
5 changes: 5 additions & 0 deletions src/apdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ size_t provide_pubkey(uint8_t *const io_buffer, cx_ecfp_public_key_t const *cons
check_null(io_buffer);
check_null(pubkey);
size_t tx = 0;
// Application could be PIN-locked, and pubkey->W_len would then be 0,
// so throwing an error rather than returning an empty key
if (os_global_pin_is_validated() != BOLOS_UX_OK) {
THROW(EXC_SECURITY);
}
io_buffer[tx++] = pubkey->W_len;
memmove(io_buffer + tx, pubkey->W, pubkey->W_len);
tx += pubkey->W_len;
Expand Down
2 changes: 1 addition & 1 deletion src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void clear_apdu_globals(void);
// Zeros out all application-specific globals and SDK-specific UI/exchange buffers.
void init_globals(void);

#define MAX_APDU_SIZE 230 // Maximum number of bytes in a single APDU
#define MAX_APDU_SIZE 235 // Maximum number of bytes in a single APDU

// Our buffer must accommodate any remainder from hashing and the next message at once.
#define TEZOS_BUFSIZE (BLAKE2B_BLOCKBYTES + MAX_APDU_SIZE)
Expand Down
1 change: 1 addition & 0 deletions src/swap/handle_swap_sign_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ bool copy_transaction_parameters(const create_transaction_parameters_t* params)
}

void handle_swap_sign_transaction(void) {
init_globals();
called_from_swap = true;
io_seproxyhal_init();
USB_power(0);
Expand Down
5 changes: 1 addition & 4 deletions src/ui_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ void init_screen_stack() {
}

void require_pin(void) {
bolos_ux_params_t params;
memset(&params, 0, sizeof(params));
params.ux_id = BOLOS_UX_VALIDATE_PIN;
os_ux_blocking(&params);
os_global_pin_invalidate();
}

__attribute__((noreturn)) bool exit_app(void) {
Expand Down
4 changes: 4 additions & 0 deletions tools/BakersRegistryCoreUnfilteredData.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,5 +494,9 @@
{
"bakerName": "Money Every 3 Days",
"bakerAccount": "tz1NEKxGEHsFufk87CVZcrqWu8o22qh46GK6"
},
{
"bakerName": "Eco Tez",
"bakerAccount": "tz3e7LbZvUtoXhpUD1yb6wuFodZpfYRb9nWJ"
}
]

0 comments on commit 218cff2

Please sign in to comment.