Skip to content

Commit

Permalink
Merge pull request #248 from keepkey/rel-v6.7.0
Browse files Browse the repository at this point in the history
Rel v6.7.0
  • Loading branch information
mvpratt authored Feb 24, 2021
2 parents fb531bf + 34c1fd0 commit 2e5cf7e
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 32 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.7.2)

project(KeepKeyFirmware

VERSION 6.6.0
VERSION 6.7.0

LANGUAGES C CXX ASM)

Expand Down
1 change: 1 addition & 0 deletions include/keepkey/firmware/ethereum_tokens.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
enum {
#define X(CHAIN_ID, CONTRACT_ADDR, TICKER, DECIMALS) \
CONCAT(TokenIndex, __COUNTER__),
#include "keepkey/firmware/uniswap_tokens.def"
#include "keepkey/firmware/ethereum_tokens.def"
TokenIndexLast,
TokenIndexFirst = 0
Expand Down
4 changes: 3 additions & 1 deletion lib/firmware/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ add_library(kkfirmware ${sources})
add_dependencies(kkfirmware kktransport.pb trezorcrypto qrcodegenerator ethereum_tokens.def)

set(ETHEREUM_TOKENS ${CMAKE_BINARY_DIR}/include/keepkey/firmware/ethereum_tokens)
set(UNISWAP_TOKENS ${CMAKE_BINARY_DIR}/include/keepkey/firmware/uniswap_tokens)

add_custom_target(ethereum_tokens.def
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/include/keepkey/firmware
COMMAND python3 ${CMAKE_SOURCE_DIR}/deps/python-keepkey/keepkeylib/eth/ethereum_tokens.py ${ETHEREUM_TOKENS}.def)
COMMAND python3 ${CMAKE_SOURCE_DIR}/deps/python-keepkey/keepkeylib/eth/ethereum_tokens.py ${ETHEREUM_TOKENS}.def
COMMAND python3 ${CMAKE_SOURCE_DIR}/deps/python-keepkey/keepkeylib/eth/uniswap_tokens.py ${UNISWAP_TOKENS}.def)

add_library(kkfirmware.keepkey variant/keepkey/resources.c)
1 change: 1 addition & 0 deletions lib/firmware/ethereum_tokens.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
const TokenType tokens[] = {
#define X(CHAIN_ID, CONTRACT_ADDR, TICKER, DECIMALS) \
{(CONTRACT_ADDR), (TICKER), (CHAIN_ID), (DECIMALS)},
#include "keepkey/firmware/uniswap_tokens.def"
#include "keepkey/firmware/ethereum_tokens.def"
};

Expand Down
46 changes: 23 additions & 23 deletions lib/firmware/pin_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ bool pin_protect_cached(void) {
if (session_isPinCached()) {
return true;
}

return pin_protect("Enter\nYour PIN");
}

Expand Down Expand Up @@ -303,28 +303,28 @@ bool change_pin(void) {
}

bool change_wipe_code(void) {
PINInfo wipe_code_info_first, wipe_code_info_second;
/* Set request types */
wipe_code_info_first.type =
PinMatrixRequestType_PinMatrixRequestType_NewFirst;
wipe_code_info_second.type =
PinMatrixRequestType_PinMatrixRequestType_NewSecond;
if (!pin_request("Enter New Wipe Code", &wipe_code_info_first)) {
return false;
}
if (!pin_request("Re-Enter New Wipe Code", &wipe_code_info_second)) {
return false;
}
if (strcmp(wipe_code_info_first.pin, wipe_code_info_second.pin) != 0) {
return false;
}
storage_setWipeCode(wipe_code_info_first.pin);
return true;
PINInfo wipe_code_info_first, wipe_code_info_second;

/* Set request types */
wipe_code_info_first.type =
PinMatrixRequestType_PinMatrixRequestType_NewFirst;
wipe_code_info_second.type =
PinMatrixRequestType_PinMatrixRequestType_NewSecond;

if (!pin_request("Enter New Wipe Code", &wipe_code_info_first)) {
return false;
}

if (!pin_request("Re-Enter New Wipe Code", &wipe_code_info_second)) {
return false;
}

if (strcmp(wipe_code_info_first.pin, wipe_code_info_second.pin) != 0) {
return false;
}

storage_setWipeCode(wipe_code_info_first.pin);
return true;
}

#if DEBUG_LINK
Expand Down
2 changes: 1 addition & 1 deletion lib/firmware/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void reset_entropy(const uint8_t *ext_entropy, uint32_t len)
fsm_sendSuccess(_("Device reset"));
goto exit;
} else {
if (!confirm(ButtonRequestType_ButtonRequest_Other, _("Recovery Seed Bakcup"),
if (!confirm(ButtonRequestType_ButtonRequest_Other, _("Recovery Seed Backup"),
"This recovery seed will only be shown ONCE. "
"Please write it down carefully,\n"
"and DO NOT share it with anyone. ")) {
Expand Down
2 changes: 1 addition & 1 deletion tools/bootloader/isr.s
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ svhandler_start_firmware:
eor r6, r6
eor r7, r7
eor r8, r8
eor r8, r9
eor r9, r9

ldr r11, =dummy_xpsr // xpsr - do not use the actual one for fake "return"
ldr r1, =fwreset // pc - load pc slot with the firmware reset vector
Expand Down
2 changes: 1 addition & 1 deletion tools/bootloader/usb_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ bool usb_flash_firmware(void) {
layout_debuglink_watermark();
#endif

usbInit("keepkey.com/update");
usbInit("beta.shapeshift.com");
bootloader_fsm_init();

while (1) {
Expand Down
2 changes: 1 addition & 1 deletion tools/emulator/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int main(void) {

led_func(SET_GREEN_LED);

usbInit("keepkey.com/get-started");
usbInit("beta.shapeshift.com");
led_func(CLR_RED_LED);

reset_idle_time();
Expand Down
4 changes: 2 additions & 2 deletions tools/firmware/keepkey_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ int main(void) {

led_func(SET_GREEN_LED);

usbInit(storage_isInitialized() ? "keepkey.com/wallet"
: "keepkey.com/get-started");
usbInit("beta.shapeshift.com");

u2fInit();
led_func(CLR_RED_LED);

Expand Down

0 comments on commit 2e5cf7e

Please sign in to comment.