Skip to content

Commit

Permalink
improve zcashtools
Browse files Browse the repository at this point in the history
  • Loading branch information
jleni committed May 9, 2024
1 parent f265bfc commit 8043766
Show file tree
Hide file tree
Showing 14 changed files with 207 additions and 175 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
version: ${{ steps.store-version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- run: make version
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
size: ${{steps.build.outputs.size}}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Build Standard app
Expand All @@ -36,7 +36,7 @@ jobs:
BOLOS_SDK: /opt/nanox-secure-sdk
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Build Standard app
Expand All @@ -52,7 +52,7 @@ jobs:
BOLOS_SDK: /opt/nanosplus-secure-sdk
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Build Standard app
Expand All @@ -75,7 +75,7 @@ jobs:
image: zondax/ledger-app-builder:latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- run: |
Expand All @@ -91,7 +91,7 @@ jobs:
echo $HOME
echo $DISPLAY
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
BOLOS_SDK: /opt/nanos-secure-sdk
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Install deps
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
BOLOS_SDK: /opt/nanosplus-secure-sdk
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Install deps
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
BOLOS_SDK: /opt/stax-secure-sdk
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Install deps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Install node
Expand Down
2 changes: 1 addition & 1 deletion app/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
authors = ["Zondax AG <info@zondax.ch>"]
authors = ["Zondax AG <hello@zondax.ch>"]
name = "rslib"
version = "0.1.0"
edition = "2021"
Expand Down
8 changes: 4 additions & 4 deletions app/ztruct/tests/tests.rs → app/ztruct/tests/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod tests {

#[test]
fn test_to_bytes() {
let instance = SimpleStruct::new(0x01020304, 0x05060708);
let instance = SimpleStruct::new(0x01020304, 0x05060708);
let bytes = instance.to_bytes();
assert_eq!(bytes, &[0x04, 0x03, 0x02, 0x01, 0x08, 0x07, 0x06, 0x05]);
}
Expand All @@ -51,16 +51,16 @@ mod tests {
#[test]
fn test_mutate_fields() {
let mut instance = SimpleStruct::new(0x12345678, 0x9ABCDEF0);
instance.f1_mut() = 0x87654321;
instance.f2_mut() = 0x0FEDCBA9;
*instance.f1_mut() = 0x87654321;
*instance.f2_mut() = 0x0FEDCBA9;
assert_eq!(instance.f1(), 0x87654321);
assert_eq!(instance.f2(), 0x0FEDCBA9);
}

#[test]
fn test_partial_updates() {
let mut instance = SimpleStruct::new(0x12345678, 0x9ABCDEF0);
instance.f1_mut() = 0x11111111;
*instance.f1_mut() = 0x11111111;
assert_eq!(instance.to_bytes(), &[0x11, 0x11, 0x11, 0x11, 0xF0, 0xDE, 0xBC, 0x9A]);
}

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion deps/ledger-zxlib
Submodule ledger-zxlib updated 0 files
2 changes: 1 addition & 1 deletion deps/stax-secure-sdk
Submodule stax-secure-sdk updated 54 files
+6 −40 Makefile.defines
+1 −1 Makefile.rules
+38 −22 Makefile.standard_app
+63 −0 Makefile.target
+23 −21 README.md
+11 −0 include/cx_errors.h
+7 −0 include/cx_stubs.h
+3 −0 include/os_print.h
+7 −0 lib_cxng/cx.export
+129 −0 lib_cxng/include/lcx_eddsa.h
+321 −229 lib_cxng/src/cx_eddsa.c
+7 −0 lib_cxng/src/cx_exported_functions.c
+2 −0 lib_cxng/src/cx_rng.c
+3 −3 lib_nbgl/doc/nbgl_use_case.dox
+2 −2 lib_nbgl/doc/nbgl_use_case_nanos.dox
+1 −0 lib_nbgl/fonts/config-Inter-Medium36-1bpp.ini
+1 −0 lib_nbgl/fonts/config-Inter-Medium36.ini
+1 −0 lib_nbgl/fonts/config-Inter-Regular28-1bpp.ini
+1 −0 lib_nbgl/fonts/config-Inter-Regular28.ini
+1 −0 lib_nbgl/fonts/config-Inter-SemiBold28-1bpp.ini
+1 −0 lib_nbgl/fonts/config-Inter-SemiBold28.ini
+ lib_nbgl/glyphs/nano/icon_coggle.gif
+ lib_nbgl/glyphs/nano/icon_processing.gif
+ lib_nbgl/glyphs/nano/icon_warning.gif
+8 −1 lib_nbgl/include/nbgl_content.h
+3 −2 lib_nbgl/include/nbgl_flow.h
+23 −9 lib_nbgl/include/nbgl_layout.h
+3 −3 lib_nbgl/include/nbgl_obj.h
+6 −4 lib_nbgl/include/nbgl_page.h
+8 −4 lib_nbgl/include/nbgl_step.h
+53 −70 lib_nbgl/include/nbgl_use_case.h
+48 −9 lib_nbgl/src/nbgl_flow.c
+168 −15 lib_nbgl/src/nbgl_fonts.c
+43 −42 lib_nbgl/src/nbgl_layout.c
+3 −8 lib_nbgl/src/nbgl_layout_internal.h
+9 −10 lib_nbgl/src/nbgl_layout_keyboard.c
+2 −2 lib_nbgl/src/nbgl_layout_keypad.c
+25 −10 lib_nbgl/src/nbgl_layout_keypad_nanos.c
+43 −9 lib_nbgl/src/nbgl_layout_nanos.c
+33 −45 lib_nbgl/src/nbgl_layout_navigation.c
+80 −1 lib_nbgl/src/nbgl_obj.c
+1 −0 lib_nbgl/src/nbgl_obj_pool.c
+25 −32 lib_nbgl/src/nbgl_page.c
+67 −10 lib_nbgl/src/nbgl_step.c
+2 −0 lib_nbgl/src/nbgl_touch.c
+145 −50 lib_nbgl/src/nbgl_use_case.c
+820 −294 lib_nbgl/src/nbgl_use_case_nanos.c
+17 −0 lib_standard_app/io.c
+71 −0 lib_ux_sync/include/ux_sync.h
+329 −0 lib_ux_sync/src/ux_sync.c
+1 −0 qrcode/src/qrcodegen.c
+7 −0 src/cx_stubs.S
+7 −1 src/ledger_assert.c
+12 −18 tools/ttf2inc.py

0 comments on commit 8043766

Please sign in to comment.