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

New Release #113

Merged
merged 2 commits into from
Jul 27, 2024
Merged

New Release #113

merged 2 commits into from
Jul 27, 2024

Conversation

emmanuelm41
Copy link
Member

@emmanuelm41 emmanuelm41 commented Jul 26, 2024

Waiting for #111 to be merged

🔗 zboto Link

@emmanuelm41 emmanuelm41 requested a review from neithanmo July 26, 2024 18:55
static bool tx_initialized = false;

__Z_INLINE bool process_chunk(__Z_UNUSED volatile uint32_t *tx, uint32_t rx) {
// FIXME: correct/improve this. Move to common?

Check notice

Code scanning / CodeQL

FIXME comment Note

FIXME comment: correct/improve this. Move to common?
@@ -19,19 +19,23 @@
// CRYPTO File
#define CHECKSUM_LENGTH 4

#define ED25519_SK_SIZE 64

// FIXME: there is a difference in the seed size with rust

Check notice

Code scanning / CodeQL

FIXME comment Note

FIXME comment: there is a difference in the seed size with rust
Comment on lines +151 to +153
// uint16_t fp_uint64_to_str(char *out, uint16_t outLen, const uint64_t value, uint8_t decimals) {
// return fpuint64_to_str(out, outLen, value, decimals);
// }

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
@@ -1094,7 +1091,7 @@
for (uint8_t i = 0; i < tInListLen; i++) {
const t_input_item_t *item = t_inlist_retrieve_item(i);

CATCH_CXERROR(os_derive_bip32_no_throw(CX_CURVE_256K1, item->path, HDPATH_LEN_DEFAULT, privateKeyData, NULL));
CATCH_CXERROR(os_derive_bip32_no_throw(CX_CURVE_256K1, item->path, HDPATH_LEN_BIP44, privateKeyData, NULL));

Check warning

Code scanning / CodeQL

Implicit function declaration Warning

Function call implicitly declares 'CATCH_CXERROR'.
@@ -1094,7 +1091,7 @@
for (uint8_t i = 0; i < tInListLen; i++) {
const t_input_item_t *item = t_inlist_retrieve_item(i);

CATCH_CXERROR(os_derive_bip32_no_throw(CX_CURVE_256K1, item->path, HDPATH_LEN_DEFAULT, privateKeyData, NULL));
CATCH_CXERROR(os_derive_bip32_no_throw(CX_CURVE_256K1, item->path, HDPATH_LEN_BIP44, privateKeyData, NULL));

Check warning

Code scanning / CodeQL

Implicit function declaration Warning

Function call implicitly declares 'os_derive_bip32_no_throw'.

zxerr_t error = zxerr_unknown;
io_seproxyhal_io_heartbeat();
CATCH_CXERROR(
os_derive_bip32_with_seed_no_throw(HDW_NORMAL, CX_CURVE_Ed25519, path, HDPATH_LEN_DEFAULT, sk, NULL, NULL, 0));
CATCH_CXERROR(os_derive_bip32_with_seed_no_throw(HDW_NORMAL, CX_CURVE_Ed25519, path, HDPATH_LEN_BIP44, raw_privkey, NULL,

Check warning

Code scanning / CodeQL

Implicit function declaration Warning

Function call implicitly declares 'os_derive_bip32_with_seed_no_throw'.
*flags |= IO_ASYNCH_REPLY;
}

__Z_INLINE void handleCheckandSign(volatile uint32_t *tx, uint32_t rx) {

Check warning

Code scanning / CodeQL

Poorly documented large function Warning

Poorly documented function: fewer than 2% comments for a function of 135 lines.
Comment on lines +120 to +128
switch (hdPath.addressKind) {
case addr_sapling_div:
snprintf(outKey, outKeyLen, "Divisifier");
array_to_hexstr(outVal, outValLen, hdPath.saplingdiv_div, DIV_SIZE);
return zxerr_ok;

default:
return zxerr_no_data;
}

Check notice

Code scanning / CodeQL

No trivial switch statements Note

This switch statement should either handle more cases, or be rewritten as an if statement.
cx_ecfp_public_key_t cx_publicKey = {0};
cx_ecfp_private_key_t cx_privateKey = {0};
uint8_t privateKeyData[64] = {0};

zxerr_t error = zxerr_unknown;
CATCH_CXERROR(os_derive_bip32_no_throw(CX_CURVE_256K1, hdPath, HDPATH_LEN_DEFAULT, privateKeyData, NULL));
CATCH_CXERROR(os_derive_bip32_no_throw(CX_CURVE_256K1, hdPath.secp256k1_path, HDPATH_LEN_BIP44, privateKeyData, NULL));

Check warning

Code scanning / CodeQL

Implicit function declaration Warning

Function call implicitly declares 'CATCH_CXERROR'.
cx_ecfp_public_key_t cx_publicKey = {0};
cx_ecfp_private_key_t cx_privateKey = {0};
uint8_t privateKeyData[64] = {0};

zxerr_t error = zxerr_unknown;
CATCH_CXERROR(os_derive_bip32_no_throw(CX_CURVE_256K1, hdPath, HDPATH_LEN_DEFAULT, privateKeyData, NULL));
CATCH_CXERROR(os_derive_bip32_no_throw(CX_CURVE_256K1, hdPath.secp256k1_path, HDPATH_LEN_BIP44, privateKeyData, NULL));

Check warning

Code scanning / CodeQL

Implicit function declaration Warning

Function call implicitly declares 'os_derive_bip32_no_throw'.
* fix: Update test vector addresses for sapling senders and outputs
Update snapshots

feat: Update builder tests in rust to use new addresses
fix transactions and add new production makefile rule

Update tests and snapshots
Update deps in zcashtools package

* Enable all targets

* feat: change app name (#112)

* Update snapshots

Increate timeout

Update snapshots

Fix approval for stax target

* Run test concurrently

* feat: update app version and snapshots

* feat: update a few more snapshots

* feat: update a few more snapshots

---------

Co-authored-by: Emmanuel <emmanuelm41@gmail.com>
@emmanuelm41 emmanuelm41 marked this pull request as ready for review July 27, 2024 03:29
@emmanuelm41 emmanuelm41 merged commit ce348bb into main Jul 27, 2024
50 checks passed
@emmanuelm41 emmanuelm41 deleted the dev branch July 27, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants