-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/replatform-app #13
Conversation
// int base58_encode(const unsigned char *in, size_t length, unsigned char *out, size_t *outlen) { | ||
// size_t i = 0, j; | ||
// size_t startAt, stopAt; | ||
// size_t zeroCount = 0; | ||
// size_t outputSize; | ||
// size_t pageSize = 10; |
Check notice
Code scanning / CodeQL
Commented-out code Note
// if (length > MAX_ENC_INPUT_SIZE) { | ||
// return -1; | ||
// } |
Check notice
Code scanning / CodeQL
Commented-out code Note
// while ((zeroCount < length) && (in[zeroCount] == 0)) { | ||
// ++zeroCount; | ||
// } |
Check notice
Code scanning / CodeQL
Commented-out code Note
// outputSize = (length - zeroCount) * 138 / 100 + 1; | ||
// int spaces = outputSize / pageSize; | ||
// outputSize += spaces; | ||
// if (*outlen < outputSize) { | ||
// *outlen = outputSize; | ||
// return -1; | ||
// } |
Check notice
Code scanning / CodeQL
Commented-out code Note
// memset(out, 0, outputSize); | ||
// stopAt = outputSize - 1; | ||
// for (startAt = zeroCount; startAt < length; startAt++) { | ||
// int carry = in[startAt]; | ||
// for (j = outputSize - 1; (int) j >= 0; j--) { | ||
// carry += 256 * out[j]; | ||
// out[j] = carry % 58; | ||
// carry /= 58; |
Check notice
Code scanning / CodeQL
Commented-out code Note
UX_FLOW(ux_display_memo, &ux_display_memo_step); | ||
|
||
void handleCborStep(void) { | ||
if (ctx->cborLength < 0) { |
Check warning
Code scanning / CodeQL
Comparison result is always the same Warning
// ux_state_t G_ux; | ||
// bolos_ux_params_t G_ux_params; |
Check notice
Code scanning / CodeQL
Commented-out code Note
just need to validate to handover the |
Checklist
develop