mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +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) {
|
if (msg->signature.size == 65 && cryptoMessageVerify(msg->message.bytes, msg->message.size, addr_raw, msg->signature.bytes) == 0) {
|
||||||
layoutVerifyAddress(msg->address);
|
layoutVerifyAddress(msg->address);
|
||||||
if (!protectButton(ButtonRequestType_ButtonRequest_Address, false)) {
|
if (!protectButton(ButtonRequestType_ButtonRequest_Other, false)) {
|
||||||
fsm_sendFailure(FailureType_Failure_ActionCancelled, "Message verification cancelled");
|
fsm_sendFailure(FailureType_Failure_ActionCancelled, "Message verification cancelled");
|
||||||
layoutHome();
|
layoutHome();
|
||||||
return;
|
return;
|
||||||
|
@ -200,8 +200,9 @@ void layoutVerifyAddress(const char *address)
|
|||||||
{
|
{
|
||||||
const char **str = split_message((const uint8_t *)address, strlen(address), 17);
|
const char **str = split_message((const uint8_t *)address, strlen(address), 17);
|
||||||
layoutDialogSwipe(DIALOG_ICON_INFO, "Cancel", "Confirm",
|
layoutDialogSwipe(DIALOG_ICON_INFO, "Cancel", "Confirm",
|
||||||
|
"Confirm address?",
|
||||||
"Address from signature:",
|
"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)
|
void layoutVerifyMessage(const uint8_t *msg, uint32_t len)
|
||||||
|
Loading…
Reference in New Issue
Block a user