Skip to content

Commit

Permalink
Merge pull request #210 from Zondax/swap
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Feb 20, 2024
2 parents 57a1925 + e559df4 commit 828eb04
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 23 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ zemu_install: tests_tools_build
test_all:
make zemu_install
SUBSTRATE_PARSER_FULL=1 make
make clean_build
SUBSTRATE_PARSER_FULL=1 SUPPORT_SR25519=1 make buildS
make zemu_test
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ APPVERSION_M=25
# This is the `spec_version` field of `Runtime`
APPVERSION_N=10100
# This is the patch version of this release
APPVERSION_P=0
APPVERSION_P=1
2 changes: 1 addition & 1 deletion app/rust/.cargo/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
registry/
.package-cache

.package-cache-mutate
2 changes: 1 addition & 1 deletion app/src/swap/handle_sign_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ parser_error_t check_swap_conditions(const parser_context_t *ctx) {
return err;
}
// Check method.
const char * valid_tx_method = "Balances Transfer";
const char * valid_tx_method = "Balances Transfer allow death";
char tmp_str[80] = {0};
snprintf(tmp_str, sizeof(tmp_str), "%s %s", _getMethod_ModuleName(ctx->tx_obj->transactionVersion,
ctx->tx_obj->callIndex.moduleIdx),
Expand Down
2 changes: 1 addition & 1 deletion cmake/cmake-modules
2 changes: 1 addition & 1 deletion deps/nanos-secure-sdk
Submodule nanos-secure-sdk updated 61 files
+1 −1 Makefile.defines
+54 −6 Makefile.rules
+34 −2 Makefile.rules_generic
+11 −0 include/cx_errors.h
+92 −153 include/ledger_assert.h
+226 −0 include/ledger_assert_internals.h
+0 −7 include/os.h
+7 −0 include/os_print.h
+37 −28 lib_cxng/include/lcx_aes.h
+14 −13 lib_cxng/include/lcx_blake2.h
+3 −3 lib_cxng/include/lcx_common.h
+7 −7 lib_cxng/include/lcx_crc.h
+19 −9 lib_cxng/include/lcx_des.h
+16 −14 lib_cxng/include/lcx_ecdh.h
+32 −31 lib_cxng/include/lcx_ecdsa.h
+68 −60 lib_cxng/include/lcx_ecfp.h
+19 −19 lib_cxng/include/lcx_ecschnorr.h
+32 −32 lib_cxng/include/lcx_eddsa.h
+4 −4 lib_cxng/include/lcx_groestl.h
+22 −22 lib_cxng/include/lcx_hash.h
+51 −38 lib_cxng/include/lcx_hmac.h
+91 −67 lib_cxng/include/lcx_math.h
+10 −9 lib_cxng/include/lcx_pbkdf2.h
+11 −8 lib_cxng/include/lcx_ripemd160.h
+23 −21 lib_cxng/include/lcx_rng.h
+62 −62 lib_cxng/include/lcx_rsa.h
+19 −9 lib_cxng/include/lcx_sha256.h
+17 −15 lib_cxng/include/lcx_sha3.h
+12 −10 lib_cxng/include/lcx_sha512.h
+1 −1 lib_cxng/include/libcxng.h
+4 −3 lib_cxng/src/cx_blake2.h
+6 −5 lib_cxng/src/cx_blake2b.h
+4 −4 lib_cxng/src/cx_crc.h
+4 −4 lib_cxng/src/cx_ecfp.h
+12 −12 lib_cxng/src/cx_eddsa.h
+16 −16 lib_cxng/src/cx_hash.h
+12 −11 lib_cxng/src/cx_pbkdf2.h
+9 −0 lib_cxng/src/cx_pkcs1.c
+23 −3 lib_cxng/src/cx_ripemd160.h
+4 −3 lib_cxng/src/cx_rng.h
+14 −13 lib_cxng/src/cx_rng_rfc6979.h
+2 −2 lib_cxng/src/cx_rsa.c
+35 −36 lib_cxng/src/cx_rsa.h
+23 −3 lib_cxng/src/cx_sha256.h
+23 −4 lib_cxng/src/cx_sha3.h
+23 −4 lib_cxng/src/cx_sha512.h
+1 −1 lib_cxng/src/cx_utils.h
+2 −3 lib_stusb/STM32_USB_Device_Library/Class/CCID/inc/sc_itf.h
+10 −0 lib_stusb/STM32_USB_Device_Library/Class/CCID/inc/usbd_ccid_if.h
+16 −23 lib_stusb/STM32_USB_Device_Library/Class/CCID/src/usbd_ccid_cmd.c
+36 −30 lib_stusb/STM32_USB_Device_Library/Class/CCID/src/usbd_ccid_if.c
+1 −0 lib_stusb/usbd_conf.h
+96 −24 lib_stusb_impl/u2f_impl.c
+7 −0 lib_stusb_impl/u2f_impl.h
+51 −5 lib_stusb_impl/usbd_impl.c
+7 −0 lib_ux/include/ux.h
+2 −0 lib_ux/src/ux_layout_common.h
+0 −2 lib_ux/src/ux_layout_paging.c
+3 −1 src/cx_stubs.S
+53 −0 src/cx_wrappers.c
+33 −34 src/ledger_assert.c
28 changes: 14 additions & 14 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@
"@zondax/zemu": "^0.46.1"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/ledgerhq__hw-transport": "^4.21.4",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@types/jest": "^29.5.12",
"@types/ledgerhq__hw-transport": "^4.21.8",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"blakejs": "^1.1.1",
"crypto-js": "^4.1.1",
"crypto-js": "^4.2.0",
"ed25519-supercop": "^2.0.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^27.1.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.5.0",
"jssha": "^3.2.0",
"prettier": "^2.8.6",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "^4.5.3"
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
Binary file modified tests_zemu/snapshots/s-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 828eb04

Please sign in to comment.