Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Oct 12, 2022
1 parent 54cb83e commit 817d40a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/signMessage.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include "handle_swap_sign_transaction.h"


static void send_result_sign_message(void) {
sendResponse(set_result_sign_message(), true);
}
Expand Down
1 change: 0 additions & 1 deletion src/signOffchainMessage.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ static bool is_data_ascii(const uint8_t *data, size_t length) {
return true;
}


//////////////////////////////////////////////////////////////////////

UX_STEP_NOCB(ux_sign_msg_text_step,
Expand Down
9 changes: 4 additions & 5 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
#include "utils.h"
#include "menu.h"


uint32_t readUint32BE(uint8_t *buffer) {
return ((buffer[0] << 24) | (buffer[1] << 16) | (buffer[2] << 8) | (buffer[3]));
}

static void get_private_key(cx_ecfp_private_key_t *privateKey,
const uint32_t *derivationPath,
size_t pathLength) {
const uint32_t *derivationPath,
size_t pathLength) {
uint8_t privateKeyData[PRIVATEKEY_LENGTH];
BEGIN_TRY {
TRY {
Expand Down Expand Up @@ -40,8 +39,8 @@ static void get_private_key(cx_ecfp_private_key_t *privateKey,
}

static void get_private_key_with_seed(cx_ecfp_private_key_t *privateKey,
const uint32_t *derivationPath,
size_t pathLength) {
const uint32_t *derivationPath,
size_t pathLength) {
uint8_t privateKeyData[PRIVATEKEY_LENGTH];
BEGIN_TRY {
TRY {
Expand Down

0 comments on commit 817d40a

Please sign in to comment.