2020-06-27 13:24:04 +02:00
|
|
|
#ifdef HAVE_STARKWARE
|
|
|
|
|
|
|
|
|
|
#include "shared_context.h"
|
|
|
|
|
#include "ui_callbacks.h"
|
|
|
|
|
#include "feature_stark_getPublicKey.h"
|
|
|
|
|
|
2021-07-05 11:01:51 +02:00
|
|
|
unsigned int io_seproxyhal_touch_stark_pubkey_ok(__attribute__((unused)) const bagl_element_t *e) {
|
2020-06-27 13:24:04 +02:00
|
|
|
uint32_t tx = set_result_get_stark_publicKey();
|
|
|
|
|
G_io_apdu_buffer[tx++] = 0x90;
|
|
|
|
|
G_io_apdu_buffer[tx++] = 0x00;
|
|
|
|
|
reset_app_context();
|
|
|
|
|
// Send back the response, do not restart the event loop
|
|
|
|
|
io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, tx);
|
|
|
|
|
// Display back the original UX
|
|
|
|
|
ui_idle();
|
2020-12-01 16:20:13 +01:00
|
|
|
return 0; // do not redraw the widget
|
2020-06-27 13:24:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|