Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bianminyan patch 1 #1425

Open
wants to merge 31 commits into
base: bootloader-verify
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6b356c9
feat: add TGT token
soralit Oct 18, 2024
40f6ea7
Merge pull request #1405 from KeystoneHQ/fix-ci
ww3512687 Oct 18, 2024
f4f927a
fix: build
soralit Oct 18, 2024
13a182e
Merge pull request #1406 from KeystoneHQ/fix-build
ZhenQian-keystone Oct 18, 2024
f7328dc
fix: fix select account path by wallet name logic
Oct 18, 2024
8b4afee
Merge pull request #1407 from KeystoneHQ/fix/connect_helium_wallet
soralit Oct 18, 2024
d1f48a1
fix: update connect wallet logic
Oct 21, 2024
274892f
Merge pull request #1408 from KeystoneHQ/fix/update_connect_wallet_logic
soralit Oct 21, 2024
61c108c
fix: fix connect wallet show eg address logic
Oct 21, 2024
4e4c81b
Merge pull request #1409 from KeystoneHQ/fix/fix_show_eg_address
soralit Oct 21, 2024
e1f629c
fix connnect wallet store
ww3512687 Oct 21, 2024
d3c4b85
Merge pull request #1410 from KeystoneHQ/fix/connect_wallet_store
soralit Oct 21, 2024
c0bf83d
chore: update hardware call notice content
Oct 21, 2024
0c2170e
Merge pull request #1411 from KeystoneHQ/fix/update_notice_content
soralit Oct 21, 2024
7cee696
chore: update docker file and tools lock
soralit Oct 21, 2024
ef44b08
Merge pull request #1412 from KeystoneHQ/update-dockerfile
ww3512687 Oct 21, 2024
803dfe9
run font script
ww3512687 Oct 22, 2024
cfa3a9e
Merge pull request #1413 from KeystoneHQ/fix/run_script
soralit Oct 22, 2024
2acfc7d
run font script
ww3512687 Oct 22, 2024
bc04fcc
Merge pull request #1414 from KeystoneHQ/fix/run_script
soralit Oct 22, 2024
1c5bd31
fix windows simulator
ww3512687 Oct 22, 2024
b18dc77
Merge pull request #1415 from KeystoneHQ/fix/windows_simulator_fix
soralit Oct 22, 2024
e5e0cd3
Update version
bianminyan Oct 22, 2024
514afb8
Merge pull request #1416 from KeystoneHQ/bianminyan-patch-1
ww3512687 Oct 22, 2024
8a40319
Fix: Ada output detail size calculation
Charon-Fan Oct 23, 2024
e04d165
Merge pull request #1418 from KeystoneHQ/fix/cardano-output-empty
soralit Oct 23, 2024
afae240
Fix: null pointer dereference in GuiAnalyzeFreeTable
Charon-Fan Oct 23, 2024
f0e0eb6
Merge pull request #1419 from KeystoneHQ/fix/cardano-output-empty
soralit Oct 23, 2024
e2ac105
add 1.7.4 changelog
bianminyan Oct 23, 2024
87d48a6
Merge pull request #1420 from KeystoneHQ/add_1.7.4_changelog
soralit Oct 23, 2024
55d9766
Update version.h
bianminyan Oct 24, 2024
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
14 changes: 14 additions & 0 deletions CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 1.7.4(2024-10-23)

### 新增

1. 支持 Keplr 钱包通过 USB 连接及管理 COSMOS 资产
2. 支持 UniSat 钱包通过 USB 连接及管理 BTC 资产

### 优化

1. 优化了在 ERC20 代币签名界面文案
2. ERC20 代币交易解析支持 TGT



## 1.7.2(2024-10-12)

### 新增
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 1.7.4(2024-10-23)

### What's New

1. Supported Keplr wallet to manage COSMOS assets via USB connection
2. Supported UniSat wallet to manage BTC assets via USB connection

### Improvements

1. Optimized the text on the ERC20 token signing interface
2. Added support for TGT token transaction parsing in ERC20


## 1.7.2(2024-10-12)

### What's new
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ RUN apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
ENV PATH=/root/.cargo/bin:$PATH
RUN cargo install cbindgen bindgen-cli
RUN rustup install nightly-2023-12-01

RUN rustup default nightly-2023-12-01
RUN rustup target add thumbv7em-none-eabihf --toolchain nightly-2023-12-01
RUN cargo install cbindgen bindgen-cli

RUN pip3 install PyYaml
RUN pip3 install pillow

FROM base as pillar
RUN wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -O gcc-arm-none-eabi.tar.bz2
Expand Down
67 changes: 66 additions & 1 deletion rust/rust_c/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion rust/rust_c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,5 @@ use tron_rust_c;
use xrp_rust_c;

#[cfg(any(feature = "simulator", feature = "simulator_btc_only"))]
#[cfg(target_os = "macos")]
#[allow(unused)]
use simulator_rust_c;
65 changes: 65 additions & 0 deletions rust/sim_qr_reader/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion rust/sim_qr_reader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ screenshots = "0.8.5"
image = "0.24.7"
quircs = "0.10.0"
anyhow = "1.0.75"
cocoa = "0.24.1"

[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.24.1"

[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.58.0", features = [
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_UI_HiDpi",
]}
30 changes: 22 additions & 8 deletions rust/sim_qr_reader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,37 @@ use screenshots::Screen;
use std::thread;
use std::time::{Duration, Instant};

use cocoa::appkit::NSScreen;
use cocoa::base::nil;
use cocoa::foundation::NSArray;

#[cfg(target_os = "macos")]
use cocoa::{appkit::NSScreen, base::nil, foundation::NSArray};

#[cfg(target_os = "windows")]
use windows::{
Win32::Foundation::HWND,
Win32::Graphics::Gdi::{GetDC, GetDeviceCaps, LOGPIXELSX},
Win32::UI::HiDpi::{SetProcessDpiAwareness, PROCESS_SYSTEM_DPI_AWARE},
};

fn get_screen_scaling_factor() -> f64 {
#[cfg(target_os = "macos")]
unsafe {
let screens = NSScreen::screens(nil);
let screen = NSArray::objectAtIndex(screens, 0);
let scale_factor = NSScreen::backingScaleFactor(screen);
scale_factor as f64
}
}

#[cfg(not(target_os = "macos"))]
fn get_screen_scaling_factor() -> f64 {
1.0 // Default value for non-macOS systems
#[cfg(target_os = "windows")]
unsafe {
let hdc = GetDC(HWND::default());
let dpi = GetDeviceCaps(hdc, LOGPIXELSX) as f64;
// 96.0 default dpi
dpi / 96.0 as f64
}

#[cfg(not(any(target_os = "macos", target_os = "windows")))]
{
1.0
}
}

pub fn continuously_read_qr_code_from_screen<G>(on_qr_code_detected: G, max_loop_count: u32) -> Result<()>
Expand Down
6 changes: 3 additions & 3 deletions src/config/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#define SD_CARD_OTA_BIN_PATH "0:/keystone3.bin"

#define SOFTWARE_VERSION_MAX_LEN (32)
#define SOFTWARE_VERSION_MAJOR 1
#define SOFTWARE_VERSION_MINOR 7
#define SOFTWARE_VERSION_BUILD 2
#define SOFTWARE_VERSION_MAJOR 9
#define SOFTWARE_VERSION_MINOR 9
#define SOFTWARE_VERSION_BUILD 9
#define SOFTWARE_VERSION_BETA 0
#define SOFTWARE_VERSION (SOFTWARE_VERSION_MAJOR * 10000 + SOFTWARE_VERSION_MINOR * 100 + SOFTWARE_VERSION_BUILD)

Expand Down
12 changes: 8 additions & 4 deletions src/crypto/account_public_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,12 +1573,18 @@ void SetAccountIndex(const char* chainName, uint32_t index)

uint32_t GetConnectWalletPathIndex(const char* walletName)
{
return GetTemplateWalletValue(walletName, "derivePath");
char name[BUFFER_SIZE_32];
strncpy_s(name, BUFFER_SIZE_32, walletName, BUFFER_SIZE_32);
RemoveFormatChar(name);
return GetTemplateWalletValue(name, "derivePath");
}

void SetConnectWalletPathIndex(const char* walletName, uint32_t index)
{
SetTemplateWalletValue(walletName, "derivePath", index);
char name[BUFFER_SIZE_32];
strncpy_s(name, BUFFER_SIZE_32, walletName, BUFFER_SIZE_32);
RemoveFormatChar(name);
SetTemplateWalletValue(name, "derivePath", index);
}

uint32_t GetConnectWalletAccountIndex(const char* walletName)
Expand All @@ -1588,7 +1594,6 @@ uint32_t GetConnectWalletAccountIndex(const char* walletName)
strncpy_s(name, BUFFER_SIZE_32, walletName, BUFFER_SIZE_32);
RemoveFormatChar(name);
cJSON *rootJson = ReadAndParseAccountJson(NULL, NULL);

cJSON *item = cJSON_GetObjectItem(rootJson, name);
if (item == NULL) {
printf("GetConnectWalletAccountIndex get %s not exist\r\n", name);
Expand Down Expand Up @@ -1677,7 +1682,6 @@ static uint32_t GetTemplateWalletValue(const char* walletName, const char* key)
{
uint32_t value = 0;
cJSON* rootJson = ReadAndParseAccountJson(NULL, NULL);

cJSON* item = cJSON_GetObjectItem(rootJson, walletName);
if (item == NULL) {
printf("GetTemplateWalletValue get %s not exist\r\n", walletName);
Expand Down
3 changes: 3 additions & 0 deletions src/ui/gui_analyze/gui_analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ uint8_t g_tableDataAmount = 0;

void GuiAnalyzeFreeTable(uint8_t row, uint8_t col, void *param)
{
if (param == NULL) {
return;
}
int i = 0, j = 0;
char ***indata = (char ***)param;
for (i = 0; i < col; i++) {
Expand Down
Loading
Loading