Skip to content

Merge develop into master - #34

Closed
sportron-ledger wants to merge 34 commits into
masterfrom
develop
Closed

sportron-ledger wants to merge 34 commits into
masterfrom
develop

Conversation

@sportron-ledger

Copy link
Copy Markdown
Contributor

Checklist

  • App update process has been followed
  • Target branch is develop
  • Application version has been bumped

sportron-ledger and others added 30 commits August 6, 2026 10:37
…l APDU

Prevent root tx process if not in the right state
Add a 15s delay for next nested call.

/// Convert params->amount into uint64_t
u128_t raw_amount = {0};
if (!swap_str_to_u128((const char *) params->amount, params->amount_length, &raw_amount)) {
PRINTF("Validated ticker: %s, decimals: %d\n", swap_validated.ticker, swap_validated.decimals);

// Save amount
if (!swap_str_to_u128(
G_context.tx.transfer.token_info->ticker);

if (G_called_from_swap) {
review_transaction(swap_check_validity(&G_context.tx.transfer, total_fees));
Comment thread src/account/account.c
Comment on lines +35 to +37
/*#define HASH_INPUT_MAX_LENGTH (8)

static field_t hash_input[HASH_INPUT_MAX_LENGTH];
static char text_buffer[32];
static field_t hash_input[HASH_INPUT_MAX_LENGTH];*/
Comment thread src/account/account.c
{
_Static_assert(HASH_INPUT_MAX_LENGTH >= 4, "hash_input size won't fit");
int status = -1;
//_Static_assert(HASH_INPUT_MAX_LENGTH >= 4, "hash_input size won't fit");
Comment thread src/crypto/bhp.c
Comment on lines +147 to +166
/*bigint_256_t s;
group_t b;
uint8_t bn_x[32];
uint8_t bn_y[32];

(void) cx_ecpoint_export(&point_a, bn_x, 32, bn_y, 32);
bn_to_big_int(bn_x, &s);
field_from_big_int(&b.x, &s);
bn_to_big_int(bn_y, &s);
field_from_big_int(&b.y, &s);
group_println(&b);

(void) cx_ecpoint_export(sum, bn_x, 32, bn_y, 32);
bn_to_big_int(bn_x, &s);
field_from_big_int(&b.x, &s);
bn_to_big_int(bn_y, &s);
field_from_big_int(&b.y, &s);
group_println(&b);

PRINTF("\n");*/
Comment thread src/crypto/bhp.c
Comment on lines +204 to +206
// sum_add(&sum, &bhp_512_base_compressed[base_offset]);
// sum_add_2(&sum, &bhp_1024_base_bn[base_offset]);
// sum_add_3(&sum, &bhp_512_base[base_offset]);
Comment thread src/crypto/bhp.c
Comment on lines +468 to +470
/*bhp_1024_hash(buffer, offset, &function_id);
PRINTF("function_id : ");
field_println(&function_id);*/
Comment thread src/crypto/bhp.c
field_println(&function_id);*/

field_t hash;
// bhp_512_hash_optim(buf_test, 506, &hash);
Comment thread src/crypto/bhp.c
Comment on lines +595 to +608
/*(void) cx_ecpoint_init(&point, bn_x, 32, bn_y, 32);
(void) cx_ecpoint_compress(&point, compressed, 32, &sign);
PRINTF(" {.compressed = {");
for (int j = 0; j < 32; j++) {
if (j == 16) {
PRINTF("\n ");
}
PRINTF("0x%02x", compressed[j]);
if (j < 31) {
PRINTF(", ");
}
}
PRINTF("},\n");
PRINTF(" .sign = %d},\n", sign);*/
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