-
Couldn't load subscription status.
- Fork 11
Evm blindsign #393
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
Evm blindsign #393
Conversation
Implements streaming mode for processing large ETH transactions that exceed buffer capacity. Adds UI support to display transaction hash for blind signing. Includes chain ID extraction to support EIP-155 signature compatibility.
| parser_nft_info_not_provided, | ||
| parser_invalid_contract_address, | ||
| parser_context_unexpected_size, | ||
| parser_blind_sign_not_enabled = 41, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to set a specific value here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error will be triggered in Rust, and in the error structure the available error code was 41, so I had to set it to be the same in C, so we could compare.
app/src/apdu_handler.c
Outdated
| memcpy(G_io_apdu_buffer, error_msg, error_msg_length); | ||
| *tx += (error_msg_length); | ||
| THROW(APDU_CODE_DATA_INVALID); | ||
| if (strcmp(error_msg, "Blind signing not enabled") == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have an error here, the app_reply_error callback will be called. There, the offset in set_code is set to 0, so the error description is missing. You need to store the offset of the error description here so it can be used in app_reply_error
Uh oh!
There was an error while loading. Please reload this page.