mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +00:00
fix last commit
This commit is contained in:
parent
9e8c369f93
commit
035a6e754f
@ -674,7 +674,7 @@ void fsm_msgVerifyMessage(VerifyMessage *msg)
|
||||
}
|
||||
if (msg->signature.size == 65 && cryptoMessageVerify(msg->message.bytes, msg->message.size, addr_raw, msg->signature.bytes) == 0) {
|
||||
layoutVerifyAddress(msg->address);
|
||||
if (!protectButton(ButtonRequestType_ButtonRequest_Address, false)) {
|
||||
if (!protectButton(ButtonRequestType_ButtonRequest_Other, false)) {
|
||||
fsm_sendFailure(FailureType_Failure_ActionCancelled, "Message verification cancelled");
|
||||
layoutHome();
|
||||
return;
|
||||
|
@ -200,8 +200,9 @@ void layoutVerifyAddress(const char *address)
|
||||
{
|
||||
const char **str = split_message((const uint8_t *)address, strlen(address), 17);
|
||||
layoutDialogSwipe(DIALOG_ICON_INFO, "Cancel", "Confirm",
|
||||
"Confirm address?",
|
||||
"Address from signature:",
|
||||
NULL, str[0], str[1], str[2], NULL, NULL);
|
||||
NULL, str[0], str[1], str[2], NULL);
|
||||
}
|
||||
|
||||
void layoutVerifyMessage(const uint8_t *msg, uint32_t len)
|
||||
|
Loading…
Reference in New Issue
Block a user