diff --git a/app/src/apdu_handler_legacy.c b/app/src/apdu_handler_legacy.c index 19c5509..961b805 100644 --- a/app/src/apdu_handler_legacy.c +++ b/app/src/apdu_handler_legacy.c @@ -19,7 +19,6 @@ #include "actions.h" #include "addr.h" #include "view_internal.h" -#include "zxformat.h" static bool tx_initialized = false; static uint32_t payload_length = 0; @@ -31,7 +30,7 @@ static uint8_t items = 0; static uint8_t item_len = 0; static bool check_item_len = false; -__Z_INLINE void legacy_app_sign() { +void legacy_app_sign() { const uint8_t *message = tx_get_buffer(); const uint16_t messageLength = tx_get_buffer_length() - hdpath_length; @@ -46,6 +45,28 @@ __Z_INLINE void legacy_app_sign() { } } +void legacy_app_sign_transference() { + const uint8_t *message = (uint8_t *)tx_get_json_template_buffer(); + const uint16_t messageLength = tx_get_json_template_buffer_len(); + + // get pubkey + zxerr_t zxerr = app_fill_address(); + if (zxerr != zxerr_ok) { + THROW(APDU_CODE_DATA_INVALID); + } + MEMMOVE(G_io_apdu_buffer + SK_LEN_25519, G_io_apdu_buffer, action_addrResponseLen); + + zxerr = crypto_sign(G_io_apdu_buffer, IO_APDU_BUFFER_SIZE - 3, message, messageLength, tx_type); + + if (zxerr != zxerr_ok) { + set_code(G_io_apdu_buffer, 0, APDU_CODE_SIGN_VERIFY_ERROR); + io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, 2); + } else { + set_code(G_io_apdu_buffer, SK_LEN_25519 + action_addrResponseLen, APDU_CODE_OK); + io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, SK_LEN_25519 + action_addrResponseLen + 2); + } +} + void legacy_app_reply_address() { if (action_addrResponseLen + 1 > sizeof(G_io_apdu_buffer)) { THROW(APDU_CODE_OUTPUT_BUFFER_TOO_SMALL); @@ -60,7 +81,7 @@ void legacy_app_reply_address() { io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, action_addrResponseLen + 2); } -void legacy_extractHDPath(uint8_t *buffer, uint32_t rx, uint32_t offset, bool check_len) { +void legacy_extractHDPath(uint8_t *buffer, uint32_t rx, uint32_t offset, uint8_t check_len) { if (rx < offset) { THROW(APDU_CODE_WRONG_LENGTH); } @@ -69,22 +90,14 @@ void legacy_extractHDPath(uint8_t *buffer, uint32_t rx, uint32_t offset, bool ch uint8_t hdPathLen = hdPathQty * sizeof(uint32_t); uint32_t offset_hdpath_data = offset + 1; - ZEMU_LOGF(50, "hdPathQty: %d\n", hdPathQty); - ZEMU_LOGF(50, "hdPathLen: %d\n", hdPathLen); - ZEMU_LOGF(50, "offset_hdpath_data: %d\n", offset_hdpath_data); - - if (check_len) { - if (rx - offset_hdpath_data != hdPathLen) { - THROW(APDU_CODE_WRONG_LENGTH); - } + if ((check_len == 1) && (rx - offset_hdpath_data != hdPathLen)) { + THROW(APDU_CODE_WRONG_LENGTH); } MEMCPY(hdPath, buffer + offset_hdpath_data, hdPathLen); const bool mainnet = hdPath[0] == HDPATH_0_DEFAULT && hdPath[1] == HDPATH_1_DEFAULT; - ZEMU_LOGF(50, "mainnet: %d\n", mainnet); - if (!mainnet) { THROW(APDU_CODE_DATA_INVALID); } @@ -108,7 +121,6 @@ bool legacy_check_end_of_chunk() { } uint32_t legacy_check_request(volatile uint32_t *tx) { - // check buffer length uint32_t tx_buffer_length = tx_get_buffer_length(); uint8_t *tx_buffer = tx_get_buffer(); @@ -121,7 +133,7 @@ uint32_t legacy_check_request(volatile uint32_t *tx) { } // get hdpath - legacy_extractHDPath(tx_buffer, tx_buffer_length, payload_length, true); + legacy_extractHDPath(tx_buffer, tx_buffer_length, payload_length, 1); // verify sizes if (tx_buffer_length != hdpath_length + payload_length) { @@ -137,10 +149,6 @@ uint32_t legacy_check_request(volatile uint32_t *tx) { void legacy_append_data(uint8_t *buffer, uint32_t len) { uint32_t added = tx_append(buffer, len); - char print[200] = {0}; - array_to_hexstr(print, sizeof(print), buffer, len); - ZEMU_LOGF(200, "legacy_append_data: %s\n", print); - if (added != len) { tx_reset(); tx_initialized = false; @@ -149,7 +157,7 @@ void legacy_append_data(uint8_t *buffer, uint32_t len) { } void legacy_handleGetAddr(volatile uint32_t *flags, volatile uint32_t *tx, uint32_t rx, const uint8_t requireConfirmation) { - legacy_extractHDPath(G_io_apdu_buffer, rx, LEGACY_OFFSET_HDPATH_SIZE, true); + legacy_extractHDPath(G_io_apdu_buffer, rx, LEGACY_OFFSET_HDPATH_SIZE, 1); zxerr_t zxerr = app_fill_address(); if (zxerr != zxerr_ok) { @@ -184,7 +192,7 @@ bool legacy_process_chunk(__Z_UNUSED volatile uint32_t *tx, uint32_t rx, bool ha // read length of data if (has_len) { payload_length = (uint32_t)G_io_apdu_buffer[5] | ((uint32_t)G_io_apdu_buffer[6] << 8) | - ((uint32_t)G_io_apdu_buffer[7] << 16) | ((uint32_t)G_io_apdu_buffer[8] << 24); + ((uint32_t)G_io_apdu_buffer[7] << 16) | ((uint32_t)G_io_apdu_buffer[8] << 24); offset = LEGACY_PAYLOAD_LEN_BYTES + LEGACY_HEADER_LENGTH; payload_size = rx - offset; @@ -199,7 +207,7 @@ bool legacy_process_chunk(__Z_UNUSED volatile uint32_t *tx, uint32_t rx, bool ha tx_reset(); tx_initialized = true; } - + // TODO: use legacy_append_data uint32_t added = tx_append(&(G_io_apdu_buffer[offset]), payload_size); if (added != payload_size) { @@ -218,7 +226,7 @@ bool legacy_process_chunk(__Z_UNUSED volatile uint32_t *tx, uint32_t rx, bool ha } static uint32_t legacy_initialize_transfer() { - legacy_extractHDPath(G_io_apdu_buffer, LEGACY_OFFSET_HDPATH_SIZE + 1, LEGACY_OFFSET_HDPATH_SIZE, false); + legacy_extractHDPath(G_io_apdu_buffer, LEGACY_OFFSET_HDPATH_SIZE + 1, LEGACY_OFFSET_HDPATH_SIZE, 0); tx_initialize(); tx_reset(); @@ -300,7 +308,7 @@ bool legacy_process_transfer_chunk(uint32_t rx) { } legacy_append_data(&G_io_apdu_buffer[offset], payload_size + 1); - + if (++items > LEGACY_TRANSFER_NUM_ITEMS) { THROW(APDU_CODE_DATA_INVALID); } @@ -365,8 +373,10 @@ void legacy_handleSignHash(volatile uint32_t *flags, volatile uint32_t *tx, uint *flags |= IO_ASYNCH_REPLY; } -// bytes: | 1 | 1 | 1 | 1 | 1 | 4*hdpath_qty | n | -// data: | CLA | INS | P1 | P2 | hdpath_qty | hdpath_data | payload | +// clang-format off +// bytes: | 1 | 1 | 1 | 1 | 1 | 4*hdpath_qty | 1 | param_1_len | 1 | param_2_len | ... | 1 | param_12_len | +// data: | CLA | INS | P1 | P2 | hdpath_qty | hdpath_data | param_1_len | param_1_data | param_2_len | param_2_data | ... | param_12_len | param_12_data | +// clang-format on void legacy_handleSignTransferTx(volatile uint32_t *flags, volatile uint32_t *tx, uint32_t rx) { zemu_log("handleSignLegacyTransferTx\n"); if (!legacy_process_transfer_chunk(rx)) { @@ -374,7 +384,6 @@ void legacy_handleSignTransferTx(volatile uint32_t *flags, volatile uint32_t *tx } uint32_t buffer_length = tx_get_buffer_length(); - ZEMU_LOGF(50, "buffer_length: %d\n", buffer_length); const char *error_msg = tx_parse(buffer_length, tx_type_transaction); tx_type = tx_type_transaction; @@ -385,7 +394,7 @@ void legacy_handleSignTransferTx(volatile uint32_t *flags, volatile uint32_t *tx THROW(APDU_CODE_LEGACY_PARSER_ERROR); } - view_review_init(tx_getItem, tx_getNumItems, legacy_app_sign); + view_review_init(tx_getItem, tx_getNumItems, legacy_app_sign_transference); view_review_show(REVIEW_TXN); *flags |= IO_ASYNCH_REPLY; } diff --git a/app/src/json/json_parser.c b/app/src/json/json_parser.c index 6a0c05d..a4ca698 100644 --- a/app/src/json/json_parser.c +++ b/app/src/json/json_parser.c @@ -214,7 +214,7 @@ parser_error_t json_parse(parsed_json_t *parsed_json, const char *buffer, uint16 parsed_json->buffer = buffer; parsed_json->bufferLen = bufferLen; - int32_t num_tokens = + int16_t num_tokens = jsmn_parse(&parser, parsed_json->buffer, parsed_json->bufferLen, parsed_json->tokens, MAX_NUMBER_OF_TOKENS); ZEMU_LOGF(35, "num_tokens: %d\n", num_tokens); diff --git a/app/src/json/json_parser.h b/app/src/json/json_parser.h index 2d64c90..efb5840 100644 --- a/app/src/json/json_parser.h +++ b/app/src/json/json_parser.h @@ -29,7 +29,7 @@ // Limit depending on target #if defined(TARGET_NANOS) || defined(TARGET_NANOX) #undef MAX_NUMBER_OF_TOKENS -#define MAX_NUMBER_OF_TOKENS 110 +#define MAX_NUMBER_OF_TOKENS 100 #endif // Context that keeps all the parsed data together. That includes: diff --git a/tests_zemu/package.json b/tests_zemu/package.json index 6bccba7..37f25b4 100644 --- a/tests_zemu/package.json +++ b/tests_zemu/package.json @@ -19,7 +19,7 @@ "format:check": "FORCE_COLOR=1 prettier --check .", "lint": "eslint .", "lint:fix": "eslint --fix .", - "test": "jest tests/legacy.test.ts", + "test": "jest", "try": "node try.mjs", "try_legacy": "node try_legacy.mjs", "upgrade": "bunx npm-check-updates -i" @@ -46,13 +46,13 @@ "eslint-plugin-promise": "^7.0.0", "eslint-plugin-tsdoc": "^0.3.0", "eslint-plugin-unused-imports": "^4.0.1", + "hw-app-kda": "git+https://github.com/obsidiansystems/hw-app-kda", "jest": "29.7.0", "jssha": "^3.3.1", "prettier": "^3.3.3", "sort-package-json": "^1.52.0", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", - "typescript": "^5.5.4", - "hw-app-kda": "git+https://github.com/obsidiansystems/hw-app-kda" + "typescript": "^5.5.4" } } diff --git a/tests_zemu/snapshots/fl-show_address-legacy/00000.png b/tests_zemu/snapshots/fl-show_address-legacy/00000.png new file mode 100644 index 0000000..d968483 Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address-legacy/00000.png differ diff --git a/tests_zemu/snapshots/fl-show_address-legacy/00001.png b/tests_zemu/snapshots/fl-show_address-legacy/00001.png new file mode 100644 index 0000000..a15fb40 Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address-legacy/00001.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_2/00007.png b/tests_zemu/snapshots/fl-show_address-legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_2/00007.png rename to tests_zemu/snapshots/fl-show_address-legacy/00002.png diff --git a/tests_zemu/snapshots/fl-show_address_reject_legacy/00000.png b/tests_zemu/snapshots/fl-show_address_reject_legacy/00000.png new file mode 100644 index 0000000..d968483 Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address_reject_legacy/00000.png differ diff --git a/tests_zemu/snapshots/fl-show_address_reject_legacy/00001.png b/tests_zemu/snapshots/fl-show_address_reject_legacy/00001.png new file mode 100644 index 0000000..45c08d4 Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address_reject_legacy/00001.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2/00007.png b/tests_zemu/snapshots/fl-show_address_reject_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_create_2/00007.png rename to tests_zemu/snapshots/fl-show_address_reject_legacy/00002.png diff --git a/tests_zemu/snapshots/fl-sign_hash_1_legacy/00000.png b/tests_zemu/snapshots/fl-sign_hash_1_legacy/00000.png new file mode 100644 index 0000000..f336df5 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_hash_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/fl-sign_hash_1_legacy/00001.png b/tests_zemu/snapshots/fl-sign_hash_1_legacy/00001.png new file mode 100644 index 0000000..cc4a62c Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_hash_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/fl-sign_hash_1_legacy/00002.png b/tests_zemu/snapshots/fl-sign_hash_1_legacy/00002.png new file mode 100644 index 0000000..ce383bb Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_hash_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/fl-sign_hash_1_legacy/00003.png b/tests_zemu/snapshots/fl-sign_hash_1_legacy/00003.png new file mode 100644 index 0000000..138ae29 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_hash_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00007.png b/tests_zemu/snapshots/fl-sign_hash_1_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00007.png rename to tests_zemu/snapshots/fl-sign_hash_1_legacy/00004.png diff --git a/tests_zemu/snapshots/fl-sign_hash_2_legacy/00000.png b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00000.png new file mode 100644 index 0000000..f336df5 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/fl-sign_hash_2_legacy/00001.png b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00001.png new file mode 100644 index 0000000..cc4a62c Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/fl-sign_hash_2_legacy/00002.png b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00002.png new file mode 100644 index 0000000..ce383bb Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/fl-sign_hash_2_legacy/00003.png b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00003.png new file mode 100644 index 0000000..138ae29 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/fl-sign_hash_2_legacy/00004.png b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00004.png new file mode 100644 index 0000000..89ee8ad Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_hash_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_2/00000.png b/tests_zemu/snapshots/fl-sign_simple_transfer/00000.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_2/00000.png rename to tests_zemu/snapshots/fl-sign_simple_transfer/00000.png diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer/00001.png b/tests_zemu/snapshots/fl-sign_simple_transfer/00001.png new file mode 100644 index 0000000..2bf5392 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer/00001.png differ diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer/00002.png b/tests_zemu/snapshots/fl-sign_simple_transfer/00002.png new file mode 100644 index 0000000..2b63d62 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer/00002.png differ diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer/00003.png b/tests_zemu/snapshots/fl-sign_simple_transfer/00003.png new file mode 100644 index 0000000..96a4db9 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer/00003.png differ diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer/00004.png b/tests_zemu/snapshots/fl-sign_simple_transfer/00004.png new file mode 100644 index 0000000..56470a2 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer/00004.png differ diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer/00005.png b/tests_zemu/snapshots/fl-sign_simple_transfer/00005.png new file mode 100644 index 0000000..ed06d33 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer/00005.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_2/00006.png b/tests_zemu/snapshots/fl-sign_simple_transfer/00006.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_2/00006.png rename to tests_zemu/snapshots/fl-sign_simple_transfer/00006.png diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer/00007.png b/tests_zemu/snapshots/fl-sign_simple_transfer/00007.png new file mode 100644 index 0000000..89ee8ad Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer/00007.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2/00000.png b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00000.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_create_2/00000.png rename to tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00000.png diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00001.png b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00001.png new file mode 100644 index 0000000..2bf5392 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00001.png differ diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00002.png b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00002.png new file mode 100644 index 0000000..2b63d62 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00002.png differ diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00003.png b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00003.png new file mode 100644 index 0000000..96a4db9 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00003.png differ diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00004.png b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00004.png new file mode 100644 index 0000000..56470a2 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00004.png differ diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00005.png b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00005.png new file mode 100644 index 0000000..ed06d33 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00005.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2/00006.png b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00006.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_create_2/00006.png rename to tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00006.png diff --git a/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00007.png b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00007.png new file mode 100644 index 0000000..89ee8ad Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_simple_transfer_legacy/00007.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00000.png b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00000.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00000.png rename to tests_zemu/snapshots/fl-sign_transfer_1_legacy/00000.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_2/00001.png b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00001.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_2/00001.png rename to tests_zemu/snapshots/fl-sign_transfer_1_legacy/00001.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_2/00002.png b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_2/00002.png rename to tests_zemu/snapshots/fl-sign_transfer_1_legacy/00002.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00003.png b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00003.png new file mode 100644 index 0000000..0bbbb8f Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00004.png b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00004.png new file mode 100644 index 0000000..980a829 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00005.png b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00005.png new file mode 100644 index 0000000..ed06d33 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00006.png b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00006.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00006.png rename to tests_zemu/snapshots/fl-sign_transfer_1_legacy/00006.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00007.png b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00007.png new file mode 100644 index 0000000..89ee8ad Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00000.png b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00000.png new file mode 100644 index 0000000..2274dbc Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2/00001.png b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00001.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_create_2/00001.png rename to tests_zemu/snapshots/fl-sign_transfer_2_legacy/00001.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2/00002.png b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_create_2/00002.png rename to tests_zemu/snapshots/fl-sign_transfer_2_legacy/00002.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_2/00003.png b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_2/00003.png rename to tests_zemu/snapshots/fl-sign_transfer_2_legacy/00003.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_2/00004.png b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_2/00004.png rename to tests_zemu/snapshots/fl-sign_transfer_2_legacy/00004.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_2/00005.png b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00005.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_2/00005.png rename to tests_zemu/snapshots/fl-sign_transfer_2_legacy/00005.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00006.png b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00006.png new file mode 100644 index 0000000..566c04b Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00007.png b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00007.png new file mode 100644 index 0000000..89ee8ad Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00000.png b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00000.png new file mode 100644 index 0000000..2274dbc Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00001.png b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00001.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00001.png rename to tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00001.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00002.png b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00002.png rename to tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00002.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00003.png b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00003.png new file mode 100644 index 0000000..57befbb Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00004.png b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00004.png new file mode 100644 index 0000000..1c4c125 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00005.png b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00005.png new file mode 100644 index 0000000..ed06d33 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00006.png b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00006.png new file mode 100644 index 0000000..566c04b Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00007.png b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00007.png new file mode 100644 index 0000000..89ee8ad Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00000.png b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00000.png new file mode 100644 index 0000000..2274dbc Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00001.png b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00001.png new file mode 100644 index 0000000..9c94e38 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00002.png b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00002.png new file mode 100644 index 0000000..5b966d0 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2/00003.png b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_create_2/00003.png rename to tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00003.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2/00004.png b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_create_2/00004.png rename to tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00004.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2/00005.png b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00005.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_create_2/00005.png rename to tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00005.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00006.png b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00006.png new file mode 100644 index 0000000..566c04b Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00007.png b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00007.png new file mode 100644 index 0000000..89ee8ad Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_create_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00000.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00000.png new file mode 100644 index 0000000..2274dbc Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00001.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00001.png new file mode 100644 index 0000000..9c94e38 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00002.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00002.png new file mode 100644 index 0000000..5b966d0 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00003.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00003.png new file mode 100644 index 0000000..e39d2cc Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00004.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00004.png new file mode 100644 index 0000000..b194b50 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00005.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00005.png new file mode 100644 index 0000000..ed06d33 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00006.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00006.png new file mode 100644 index 0000000..566c04b Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00007.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00007.png new file mode 100644 index 0000000..89ee8ad Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00000.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00000.png new file mode 100644 index 0000000..2274dbc Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00001.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00001.png new file mode 100644 index 0000000..9c94e38 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00002.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00002.png new file mode 100644 index 0000000..5b966d0 Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00003.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00003.png rename to tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00003.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00004.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00004.png rename to tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00004.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00005.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00005.png similarity index 100% rename from tests_zemu/snapshots/fl-sign_transfer_cross_chain_2/00005.png rename to tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00005.png diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00006.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00006.png new file mode 100644 index 0000000..566c04b Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00007.png b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00007.png new file mode 100644 index 0000000..89ee8ad Binary files /dev/null and b/tests_zemu/snapshots/fl-sign_transfer_cross_chain_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/s-show_address-legacy/00000.png b/tests_zemu/snapshots/s-show_address-legacy/00000.png new file mode 100644 index 0000000..813468f Binary files /dev/null and b/tests_zemu/snapshots/s-show_address-legacy/00000.png differ diff --git a/tests_zemu/snapshots/s-show_address-legacy/00001.png b/tests_zemu/snapshots/s-show_address-legacy/00001.png new file mode 100644 index 0000000..16da707 Binary files /dev/null and b/tests_zemu/snapshots/s-show_address-legacy/00001.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00018.png b/tests_zemu/snapshots/s-show_address-legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00018.png rename to tests_zemu/snapshots/s-show_address-legacy/00002.png diff --git a/tests_zemu/snapshots/s-sign_transfer_1/00019.png b/tests_zemu/snapshots/s-show_address-legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_1/00019.png rename to tests_zemu/snapshots/s-show_address-legacy/00003.png diff --git a/tests_zemu/snapshots/s-show_address_reject_legacy/00000.png b/tests_zemu/snapshots/s-show_address_reject_legacy/00000.png new file mode 100644 index 0000000..813468f Binary files /dev/null and b/tests_zemu/snapshots/s-show_address_reject_legacy/00000.png differ diff --git a/tests_zemu/snapshots/s-show_address_reject_legacy/00001.png b/tests_zemu/snapshots/s-show_address_reject_legacy/00001.png new file mode 100644 index 0000000..16da707 Binary files /dev/null and b/tests_zemu/snapshots/s-show_address_reject_legacy/00001.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00018.png b/tests_zemu/snapshots/s-show_address_reject_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00018.png rename to tests_zemu/snapshots/s-show_address_reject_legacy/00002.png diff --git a/tests_zemu/snapshots/s-show_address_reject_legacy/00003.png b/tests_zemu/snapshots/s-show_address_reject_legacy/00003.png new file mode 100644 index 0000000..ef76636 Binary files /dev/null and b/tests_zemu/snapshots/s-show_address_reject_legacy/00003.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00019.png b/tests_zemu/snapshots/s-show_address_reject_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00019.png rename to tests_zemu/snapshots/s-show_address_reject_legacy/00004.png diff --git a/tests_zemu/snapshots/s-sign_hash_1_legacy/00000.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00000.png new file mode 100644 index 0000000..da7a40d Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_1_legacy/00001.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00001.png new file mode 100644 index 0000000..b068366 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_1_legacy/00002.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00002.png new file mode 100644 index 0000000..7e59590 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_1_legacy/00003.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00003.png new file mode 100644 index 0000000..a95792f Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_1_legacy/00004.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00004.png new file mode 100644 index 0000000..03681bd Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_1_legacy/00005.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00005.png new file mode 100644 index 0000000..03f043e Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00016.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00006.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00016.png rename to tests_zemu/snapshots/s-sign_hash_1_legacy/00006.png diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00017.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00007.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00017.png rename to tests_zemu/snapshots/s-sign_hash_1_legacy/00007.png diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00019.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00008.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00019.png rename to tests_zemu/snapshots/s-sign_hash_1_legacy/00008.png diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00019.png b/tests_zemu/snapshots/s-sign_hash_1_legacy/00009.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00019.png rename to tests_zemu/snapshots/s-sign_hash_1_legacy/00009.png diff --git a/tests_zemu/snapshots/s-sign_hash_2_legacy/00000.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00000.png new file mode 100644 index 0000000..da7a40d Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_2_legacy/00001.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00001.png new file mode 100644 index 0000000..b068366 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_2_legacy/00002.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00002.png new file mode 100644 index 0000000..7e59590 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_2_legacy/00003.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00003.png new file mode 100644 index 0000000..a95792f Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_2_legacy/00004.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00004.png new file mode 100644 index 0000000..03681bd Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/s-sign_hash_2_legacy/00005.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00005.png new file mode 100644 index 0000000..03f043e Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00016.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00006.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00016.png rename to tests_zemu/snapshots/s-sign_hash_2_legacy/00006.png diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00017.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00007.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00017.png rename to tests_zemu/snapshots/s-sign_hash_2_legacy/00007.png diff --git a/tests_zemu/snapshots/s-sign_hash_2_legacy/00008.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00008.png new file mode 100644 index 0000000..006c26a Binary files /dev/null and b/tests_zemu/snapshots/s-sign_hash_2_legacy/00008.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00020.png b/tests_zemu/snapshots/s-sign_hash_2_legacy/00009.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00020.png rename to tests_zemu/snapshots/s-sign_hash_2_legacy/00009.png diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00000.png b/tests_zemu/snapshots/s-sign_simple_transfer/00000.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00000.png rename to tests_zemu/snapshots/s-sign_simple_transfer/00000.png diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00001.png b/tests_zemu/snapshots/s-sign_simple_transfer/00001.png new file mode 100644 index 0000000..2a68ef7 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00001.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00002.png b/tests_zemu/snapshots/s-sign_simple_transfer/00002.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00002.png rename to tests_zemu/snapshots/s-sign_simple_transfer/00002.png diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00003.png b/tests_zemu/snapshots/s-sign_simple_transfer/00003.png new file mode 100644 index 0000000..6647494 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00003.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00004.png b/tests_zemu/snapshots/s-sign_simple_transfer/00004.png new file mode 100644 index 0000000..57efad6 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00004.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00005.png b/tests_zemu/snapshots/s-sign_simple_transfer/00005.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00005.png rename to tests_zemu/snapshots/s-sign_simple_transfer/00005.png diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00006.png b/tests_zemu/snapshots/s-sign_simple_transfer/00006.png new file mode 100644 index 0000000..00727c1 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00006.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00007.png b/tests_zemu/snapshots/s-sign_simple_transfer/00007.png new file mode 100644 index 0000000..a4ff8a9 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00007.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00008.png b/tests_zemu/snapshots/s-sign_simple_transfer/00008.png new file mode 100644 index 0000000..67dc0c3 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00008.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00009.png b/tests_zemu/snapshots/s-sign_simple_transfer/00009.png new file mode 100644 index 0000000..7b3e255 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00009.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00010.png b/tests_zemu/snapshots/s-sign_simple_transfer/00010.png new file mode 100644 index 0000000..6879d8b Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00010.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00012.png b/tests_zemu/snapshots/s-sign_simple_transfer/00011.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00012.png rename to tests_zemu/snapshots/s-sign_simple_transfer/00011.png diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00012.png b/tests_zemu/snapshots/s-sign_simple_transfer/00012.png new file mode 100644 index 0000000..1c947ca Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00012.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00013.png b/tests_zemu/snapshots/s-sign_simple_transfer/00013.png new file mode 100644 index 0000000..31dea61 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00013.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00014.png b/tests_zemu/snapshots/s-sign_simple_transfer/00014.png new file mode 100644 index 0000000..9dacc12 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00014.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00017.png b/tests_zemu/snapshots/s-sign_simple_transfer/00015.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00017.png rename to tests_zemu/snapshots/s-sign_simple_transfer/00015.png diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00018.png b/tests_zemu/snapshots/s-sign_simple_transfer/00016.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00018.png rename to tests_zemu/snapshots/s-sign_simple_transfer/00016.png diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00017.png b/tests_zemu/snapshots/s-sign_simple_transfer/00017.png new file mode 100644 index 0000000..006c26a Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00017.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer/00018.png b/tests_zemu/snapshots/s-sign_simple_transfer/00018.png new file mode 100644 index 0000000..f087398 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer/00018.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00000.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00000.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00000.png rename to tests_zemu/snapshots/s-sign_simple_transfer_legacy/00000.png diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00001.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00001.png new file mode 100644 index 0000000..2a68ef7 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00001.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00002.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00002.png rename to tests_zemu/snapshots/s-sign_simple_transfer_legacy/00002.png diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00003.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00003.png new file mode 100644 index 0000000..6647494 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00003.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00004.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00004.png new file mode 100644 index 0000000..57efad6 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00004.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00005.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00005.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00005.png rename to tests_zemu/snapshots/s-sign_simple_transfer_legacy/00005.png diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00006.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00006.png new file mode 100644 index 0000000..00727c1 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00006.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00007.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00007.png new file mode 100644 index 0000000..a4ff8a9 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00007.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00008.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00008.png new file mode 100644 index 0000000..67dc0c3 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00008.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00009.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00009.png new file mode 100644 index 0000000..7b3e255 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00009.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00010.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00010.png new file mode 100644 index 0000000..6879d8b Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00010.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00011.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00011.png new file mode 100644 index 0000000..fdaec24 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00011.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00012.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00012.png new file mode 100644 index 0000000..1c947ca Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00012.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00013.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00013.png new file mode 100644 index 0000000..31dea61 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00013.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00014.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00014.png new file mode 100644 index 0000000..9dacc12 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00014.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00015.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00015.png new file mode 100644 index 0000000..eda1d77 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00015.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00016.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00016.png new file mode 100644 index 0000000..67e4ac1 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00016.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00017.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00017.png new file mode 100644 index 0000000..006c26a Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00017.png differ diff --git a/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00018.png b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00018.png new file mode 100644 index 0000000..f087398 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_simple_transfer_legacy/00018.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00000.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00000.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00000.png rename to tests_zemu/snapshots/s-sign_transfer_1_legacy/00000.png diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00001.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00001.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00001.png rename to tests_zemu/snapshots/s-sign_transfer_1_legacy/00001.png diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00002.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00002.png rename to tests_zemu/snapshots/s-sign_transfer_1_legacy/00002.png diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00003.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00003.png rename to tests_zemu/snapshots/s-sign_transfer_1_legacy/00003.png diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00004.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00004.png rename to tests_zemu/snapshots/s-sign_transfer_1_legacy/00004.png diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00005.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00005.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00005.png rename to tests_zemu/snapshots/s-sign_transfer_1_legacy/00005.png diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00006.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00006.png new file mode 100644 index 0000000..f81fefb Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00007.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00007.png new file mode 100644 index 0000000..5ce6c38 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00008.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00008.png new file mode 100644 index 0000000..cdde32a Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00008.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00009.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00009.png new file mode 100644 index 0000000..23e3366 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00009.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00010.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00010.png new file mode 100644 index 0000000..3b6b7a0 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00010.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00011.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00011.png new file mode 100644 index 0000000..fdaec24 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00011.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00013.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00012.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_2/00013.png rename to tests_zemu/snapshots/s-sign_transfer_1_legacy/00012.png diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00013.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00013.png new file mode 100644 index 0000000..a36f097 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00013.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00014.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00014.png new file mode 100644 index 0000000..1acebcb Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00014.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00015.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00015.png new file mode 100644 index 0000000..eda1d77 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00015.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00016.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00016.png new file mode 100644 index 0000000..67e4ac1 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00016.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00017.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00017.png new file mode 100644 index 0000000..006c26a Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00017.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_1_legacy/00018.png b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00018.png new file mode 100644 index 0000000..f087398 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_1_legacy/00018.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00006.png b/tests_zemu/snapshots/s-sign_transfer_2/00006.png deleted file mode 100644 index 3b570d7..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_2/00006.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00007.png b/tests_zemu/snapshots/s-sign_transfer_2/00007.png deleted file mode 100644 index 005d123..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_2/00007.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00008.png b/tests_zemu/snapshots/s-sign_transfer_2/00008.png deleted file mode 100644 index 8f3da47..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_2/00008.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00009.png b/tests_zemu/snapshots/s-sign_transfer_2/00009.png deleted file mode 100644 index 8dda1f5..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_2/00009.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00010.png b/tests_zemu/snapshots/s-sign_transfer_2/00010.png deleted file mode 100644 index 45a4f18..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_2/00010.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00011.png b/tests_zemu/snapshots/s-sign_transfer_2/00011.png deleted file mode 100644 index 05c2284..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_2/00011.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00014.png b/tests_zemu/snapshots/s-sign_transfer_2/00014.png deleted file mode 100644 index 1c511d6..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_2/00014.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_2/00015.png b/tests_zemu/snapshots/s-sign_transfer_2/00015.png deleted file mode 100644 index ca3a446..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_2/00015.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00000.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00000.png new file mode 100644 index 0000000..c83ee89 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00001.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00001.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00001.png rename to tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00001.png diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00002.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00002.png new file mode 100644 index 0000000..2593b43 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00003.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00003.png rename to tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00003.png diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00004.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00004.png rename to tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00004.png diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00005.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00005.png new file mode 100644 index 0000000..d283c27 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00006.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00006.png new file mode 100644 index 0000000..671ad6e Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00007.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00007.png new file mode 100644 index 0000000..44adec6 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00008.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00008.png new file mode 100644 index 0000000..406676f Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00008.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00009.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00009.png new file mode 100644 index 0000000..ebc3c7b Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00009.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00010.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00010.png new file mode 100644 index 0000000..b697063 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00010.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00012.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00011.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00012.png rename to tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00011.png diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00013.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00012.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_create_2/00013.png rename to tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00012.png diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00013.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00013.png new file mode 100644 index 0000000..7bc5337 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00013.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00014.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00014.png new file mode 100644 index 0000000..4bad7ec Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00014.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00015.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00015.png new file mode 100644 index 0000000..eda1d77 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00015.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00016.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00016.png new file mode 100644 index 0000000..67e4ac1 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00016.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00017.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00017.png new file mode 100644 index 0000000..006c26a Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00017.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00018.png b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00018.png new file mode 100644 index 0000000..f087398 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_create_1_legacy/00018.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00006.png b/tests_zemu/snapshots/s-sign_transfer_create_2/00006.png deleted file mode 100644 index 3b570d7..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_create_2/00006.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00007.png b/tests_zemu/snapshots/s-sign_transfer_create_2/00007.png deleted file mode 100644 index 005d123..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_create_2/00007.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00008.png b/tests_zemu/snapshots/s-sign_transfer_create_2/00008.png deleted file mode 100644 index 8f3da47..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_create_2/00008.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00009.png b/tests_zemu/snapshots/s-sign_transfer_create_2/00009.png deleted file mode 100644 index 8dda1f5..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_create_2/00009.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00010.png b/tests_zemu/snapshots/s-sign_transfer_create_2/00010.png deleted file mode 100644 index 45a4f18..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_create_2/00010.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00011.png b/tests_zemu/snapshots/s-sign_transfer_create_2/00011.png deleted file mode 100644 index d97aae8..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_create_2/00011.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00014.png b/tests_zemu/snapshots/s-sign_transfer_create_2/00014.png deleted file mode 100644 index a3331ae..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_create_2/00014.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_create_2/00015.png b/tests_zemu/snapshots/s-sign_transfer_create_2/00015.png deleted file mode 100644 index 44aa776..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_create_2/00015.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00000.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00000.png new file mode 100644 index 0000000..c83ee89 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00001.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00001.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00001.png rename to tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00001.png diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00002.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00002.png new file mode 100644 index 0000000..2593b43 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00003.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00003.png rename to tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00003.png diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00004.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00004.png rename to tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00004.png diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00005.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00005.png new file mode 100644 index 0000000..d283c27 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00006.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00006.png new file mode 100644 index 0000000..2b9c932 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00007.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00007.png new file mode 100644 index 0000000..695b04a Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00008.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00008.png new file mode 100644 index 0000000..2e9d08d Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00008.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00009.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00009.png new file mode 100644 index 0000000..4578082 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00009.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00010.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00010.png new file mode 100644 index 0000000..9db32b9 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00010.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00011.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00011.png new file mode 100644 index 0000000..f20078c Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00011.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00013.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00012.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00013.png rename to tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00012.png diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00014.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00013.png similarity index 100% rename from tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00014.png rename to tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00013.png diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00014.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00014.png new file mode 100644 index 0000000..44ffe41 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00014.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00015.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00015.png new file mode 100644 index 0000000..aca0c77 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00015.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00016.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00016.png new file mode 100644 index 0000000..eda1d77 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00016.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00017.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00017.png new file mode 100644 index 0000000..67e4ac1 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00017.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00018.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00018.png new file mode 100644 index 0000000..006c26a Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00018.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00019.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00019.png new file mode 100644 index 0000000..f087398 Binary files /dev/null and b/tests_zemu/snapshots/s-sign_transfer_cross_chain_1_legacy/00019.png differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00006.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00006.png deleted file mode 100644 index 3560945..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00006.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00007.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00007.png deleted file mode 100644 index 5e43738..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00007.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00008.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00008.png deleted file mode 100644 index 65ee9c4..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00008.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00009.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00009.png deleted file mode 100644 index fa17606..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00009.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00010.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00010.png deleted file mode 100644 index f6be10f..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00010.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00011.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00011.png deleted file mode 100644 index 213f112..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00011.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00012.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00012.png deleted file mode 100644 index b93fd9e..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00012.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00015.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00015.png deleted file mode 100644 index 7511102..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00015.png and /dev/null differ diff --git a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00016.png b/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00016.png deleted file mode 100644 index 8606c80..0000000 Binary files a/tests_zemu/snapshots/s-sign_transfer_cross_chain_2/00016.png and /dev/null differ diff --git a/tests_zemu/snapshots/sp-show_address-legacy/00000.png b/tests_zemu/snapshots/sp-show_address-legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address-legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-show_address-legacy/00001.png b/tests_zemu/snapshots/sp-show_address-legacy/00001.png new file mode 100644 index 0000000..5048ead Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address-legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-show_address-legacy/00002.png b/tests_zemu/snapshots/sp-show_address-legacy/00002.png new file mode 100644 index 0000000..4e7d98f Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address-legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-show_address-legacy/00003.png b/tests_zemu/snapshots/sp-show_address-legacy/00003.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address-legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-show_address-legacy/00004.png b/tests_zemu/snapshots/sp-show_address-legacy/00004.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address-legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-show_address_reject_legacy/00000.png b/tests_zemu/snapshots/sp-show_address_reject_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address_reject_legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-show_address_reject_legacy/00001.png b/tests_zemu/snapshots/sp-show_address_reject_legacy/00001.png new file mode 100644 index 0000000..5048ead Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address_reject_legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-show_address_reject_legacy/00002.png b/tests_zemu/snapshots/sp-show_address_reject_legacy/00002.png new file mode 100644 index 0000000..4e7d98f Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address_reject_legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-show_address_reject_legacy/00003.png b/tests_zemu/snapshots/sp-show_address_reject_legacy/00003.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address_reject_legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-show_address_reject_legacy/00004.png b/tests_zemu/snapshots/sp-show_address_reject_legacy/00004.png new file mode 100644 index 0000000..de8a291 Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address_reject_legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-show_address_reject_legacy/00005.png b/tests_zemu/snapshots/sp-show_address_reject_legacy/00005.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-show_address_reject_legacy/00005.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_1_legacy/00000.png b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_1_legacy/00001.png b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00001.png new file mode 100644 index 0000000..974d2e7 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_1_legacy/00002.png b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00002.png new file mode 100644 index 0000000..a58dfd1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_1_legacy/00003.png b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00003.png new file mode 100644 index 0000000..15de6b1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_1_legacy/00004.png b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00004.png new file mode 100644 index 0000000..e2f1fad Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_1_legacy/00005.png b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00005.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_1_legacy/00006.png b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00006.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_1_legacy/00007.png b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00007.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_1_legacy/00008.png b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00008.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_1_legacy/00008.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_2_legacy/00000.png b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_2_legacy/00001.png b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00001.png new file mode 100644 index 0000000..974d2e7 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_2_legacy/00002.png b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00002.png new file mode 100644 index 0000000..a58dfd1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_2_legacy/00003.png b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00003.png new file mode 100644 index 0000000..15de6b1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_2_legacy/00004.png b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00004.png new file mode 100644 index 0000000..e2f1fad Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_2_legacy/00005.png b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00005.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_2_legacy/00006.png b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00006.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_2_legacy/00007.png b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00007.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/sp-sign_hash_2_legacy/00008.png b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00008.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_hash_2_legacy/00008.png differ diff --git a/tests_zemu/snapshots/sp-sign_simple_transfer_legacy/00012.png b/tests_zemu/snapshots/sp-sign_simple_transfer_legacy/00012.png index c02868b..5824ac0 100644 Binary files a/tests_zemu/snapshots/sp-sign_simple_transfer_legacy/00012.png and b/tests_zemu/snapshots/sp-sign_simple_transfer_legacy/00012.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00000.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00001.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00002.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00003.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00004.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00005.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00006.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00007.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00007.png new file mode 100644 index 0000000..7c60378 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00008.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00008.png new file mode 100644 index 0000000..249687b Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00008.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00009.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00009.png new file mode 100644 index 0000000..d82d455 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00009.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00010.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00010.png new file mode 100644 index 0000000..131116b Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00010.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00011.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00011.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00011.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00012.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00012.png new file mode 100644 index 0000000..e704761 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00012.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00013.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00013.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00013.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00014.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00014.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00014.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00015.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00015.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00015.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00016.png b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00016.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_1_legacy/00016.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00000.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00001.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00002.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00003.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00004.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00005.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00006.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00007.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00007.png new file mode 100644 index 0000000..1780e8f Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00008.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00008.png new file mode 100644 index 0000000..1108ca2 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00008.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00009.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00009.png new file mode 100644 index 0000000..3508ae4 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00009.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00010.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00010.png new file mode 100644 index 0000000..b52ee6c Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00010.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00011.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00011.png new file mode 100644 index 0000000..131116b Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00011.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00012.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00012.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00012.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00013.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00013.png new file mode 100644 index 0000000..c9d8a33 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00013.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00014.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00014.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00014.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00015.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00015.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00015.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00016.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00016.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00016.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00017.png b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00017.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_2_legacy/00017.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00000.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00001.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00002.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00003.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00004.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00005.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00006.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00007.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00007.png new file mode 100644 index 0000000..56502bb Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00008.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00008.png new file mode 100644 index 0000000..249687b Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00008.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00009.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00009.png new file mode 100644 index 0000000..d82d455 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00009.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00010.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00010.png new file mode 100644 index 0000000..2115358 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00010.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00011.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00011.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00011.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00012.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00012.png new file mode 100644 index 0000000..3986742 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00012.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00013.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00013.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00013.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00014.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00014.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00014.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00015.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00015.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00015.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00016.png b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00016.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_1_legacy/00016.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00000.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00001.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00002.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00003.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00004.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00005.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00006.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00007.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00007.png new file mode 100644 index 0000000..1780e8f Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00008.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00008.png new file mode 100644 index 0000000..1108ca2 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00008.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00009.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00009.png new file mode 100644 index 0000000..3508ae4 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00009.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00010.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00010.png new file mode 100644 index 0000000..33cd8cf Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00010.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00011.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00011.png new file mode 100644 index 0000000..2115358 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00011.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00012.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00012.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00012.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00013.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00013.png new file mode 100644 index 0000000..3794349 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00013.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00014.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00014.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00014.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00015.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00015.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00015.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00016.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00016.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00016.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00017.png b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00017.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_create_2_legacy/00017.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00000.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00001.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00002.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00003.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00004.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00005.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00006.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00007.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00007.png new file mode 100644 index 0000000..9d45c59 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00008.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00008.png new file mode 100644 index 0000000..6aa291c Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00008.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00009.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00009.png new file mode 100644 index 0000000..5e20eda Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00009.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00010.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00010.png new file mode 100644 index 0000000..8d25ff4 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00010.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00011.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00011.png new file mode 100644 index 0000000..2115358 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00011.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00012.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00012.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00012.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00013.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00013.png new file mode 100644 index 0000000..f6cdcdf Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00013.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00014.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00014.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00014.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00015.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00015.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00015.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00016.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00016.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00016.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00017.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00017.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_1_legacy/00017.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00000.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00001.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00002.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00003.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00004.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00005.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00006.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00007.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00007.png new file mode 100644 index 0000000..560c02d Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00008.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00008.png new file mode 100644 index 0000000..f9bd49f Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00008.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00009.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00009.png new file mode 100644 index 0000000..1bf1363 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00009.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00010.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00010.png new file mode 100644 index 0000000..a3a7099 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00010.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00011.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00011.png new file mode 100644 index 0000000..2115358 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00011.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00012.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00012.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00012.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00013.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00013.png new file mode 100644 index 0000000..332d6ae Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00013.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00014.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00014.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00014.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00015.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00015.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00015.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00016.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00016.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00016.png differ diff --git a/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00017.png b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00017.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/sp-sign_transfer_cross_chain_2_legacy/00017.png differ diff --git a/tests_zemu/snapshots/st-show_address-legacy/00000.png b/tests_zemu/snapshots/st-show_address-legacy/00000.png new file mode 100644 index 0000000..c77ae50 Binary files /dev/null and b/tests_zemu/snapshots/st-show_address-legacy/00000.png differ diff --git a/tests_zemu/snapshots/st-show_address-legacy/00001.png b/tests_zemu/snapshots/st-show_address-legacy/00001.png new file mode 100644 index 0000000..b649d9d Binary files /dev/null and b/tests_zemu/snapshots/st-show_address-legacy/00001.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_2/00007.png b/tests_zemu/snapshots/st-show_address-legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_2/00007.png rename to tests_zemu/snapshots/st-show_address-legacy/00002.png diff --git a/tests_zemu/snapshots/st-show_address_reject_legacy/00000.png b/tests_zemu/snapshots/st-show_address_reject_legacy/00000.png new file mode 100644 index 0000000..c77ae50 Binary files /dev/null and b/tests_zemu/snapshots/st-show_address_reject_legacy/00000.png differ diff --git a/tests_zemu/snapshots/st-show_address_reject_legacy/00001.png b/tests_zemu/snapshots/st-show_address_reject_legacy/00001.png new file mode 100644 index 0000000..94c91bb Binary files /dev/null and b/tests_zemu/snapshots/st-show_address_reject_legacy/00001.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_create_2/00007.png b/tests_zemu/snapshots/st-show_address_reject_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_create_2/00007.png rename to tests_zemu/snapshots/st-show_address_reject_legacy/00002.png diff --git a/tests_zemu/snapshots/st-sign_hash_1_legacy/00000.png b/tests_zemu/snapshots/st-sign_hash_1_legacy/00000.png new file mode 100644 index 0000000..0f7f3f9 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_hash_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/st-sign_hash_1_legacy/00001.png b/tests_zemu/snapshots/st-sign_hash_1_legacy/00001.png new file mode 100644 index 0000000..fc3f83a Binary files /dev/null and b/tests_zemu/snapshots/st-sign_hash_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/st-sign_hash_1_legacy/00002.png b/tests_zemu/snapshots/st-sign_hash_1_legacy/00002.png new file mode 100644 index 0000000..967a170 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_hash_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/st-sign_hash_1_legacy/00003.png b/tests_zemu/snapshots/st-sign_hash_1_legacy/00003.png new file mode 100644 index 0000000..87bd809 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_hash_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00007.png b/tests_zemu/snapshots/st-sign_hash_1_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00007.png rename to tests_zemu/snapshots/st-sign_hash_1_legacy/00004.png diff --git a/tests_zemu/snapshots/st-sign_hash_2_legacy/00000.png b/tests_zemu/snapshots/st-sign_hash_2_legacy/00000.png new file mode 100644 index 0000000..0f7f3f9 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_hash_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/st-sign_hash_2_legacy/00001.png b/tests_zemu/snapshots/st-sign_hash_2_legacy/00001.png new file mode 100644 index 0000000..fc3f83a Binary files /dev/null and b/tests_zemu/snapshots/st-sign_hash_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/st-sign_hash_2_legacy/00002.png b/tests_zemu/snapshots/st-sign_hash_2_legacy/00002.png new file mode 100644 index 0000000..967a170 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_hash_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/st-sign_hash_2_legacy/00003.png b/tests_zemu/snapshots/st-sign_hash_2_legacy/00003.png new file mode 100644 index 0000000..87bd809 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_hash_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/st-sign_hash_2_legacy/00004.png b/tests_zemu/snapshots/st-sign_hash_2_legacy/00004.png new file mode 100644 index 0000000..936d633 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_hash_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer/00000.png b/tests_zemu/snapshots/st-sign_simple_transfer/00000.png new file mode 100644 index 0000000..64fcdf3 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer/00000.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer/00001.png b/tests_zemu/snapshots/st-sign_simple_transfer/00001.png new file mode 100644 index 0000000..e69f01a Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer/00001.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer/00002.png b/tests_zemu/snapshots/st-sign_simple_transfer/00002.png new file mode 100644 index 0000000..cf560f7 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer/00002.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer/00003.png b/tests_zemu/snapshots/st-sign_simple_transfer/00003.png new file mode 100644 index 0000000..3fb7fb2 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer/00003.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer/00004.png b/tests_zemu/snapshots/st-sign_simple_transfer/00004.png new file mode 100644 index 0000000..74ddd65 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer/00004.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer/00005.png b/tests_zemu/snapshots/st-sign_simple_transfer/00005.png new file mode 100644 index 0000000..e6bb0d1 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer/00005.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer/00006.png b/tests_zemu/snapshots/st-sign_simple_transfer/00006.png new file mode 100644 index 0000000..936d633 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer/00006.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00000.png b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00000.png new file mode 100644 index 0000000..64fcdf3 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00000.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00001.png b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00001.png new file mode 100644 index 0000000..e69f01a Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00001.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00002.png b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00002.png new file mode 100644 index 0000000..cf560f7 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00002.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00003.png b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00003.png new file mode 100644 index 0000000..3fb7fb2 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00003.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00004.png b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00004.png new file mode 100644 index 0000000..74ddd65 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00004.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00005.png b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00005.png new file mode 100644 index 0000000..e6bb0d1 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00005.png differ diff --git a/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00006.png b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00006.png new file mode 100644 index 0000000..936d633 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_simple_transfer_legacy/00006.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_1_legacy/00000.png b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00000.png new file mode 100644 index 0000000..64fcdf3 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_1_legacy/00001.png b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00001.png new file mode 100644 index 0000000..21b648f Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_1_legacy/00002.png b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00002.png new file mode 100644 index 0000000..bda2c3b Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_1_legacy/00003.png b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00003.png new file mode 100644 index 0000000..bea7131 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_1_legacy/00004.png b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00004.png new file mode 100644 index 0000000..74ddd65 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_1_legacy/00005.png b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00005.png new file mode 100644 index 0000000..e6bb0d1 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_1_legacy/00006.png b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00006.png new file mode 100644 index 0000000..936d633 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_2/00000.png b/tests_zemu/snapshots/st-sign_transfer_2_legacy/00000.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_2/00000.png rename to tests_zemu/snapshots/st-sign_transfer_2_legacy/00000.png diff --git a/tests_zemu/snapshots/st-sign_transfer_2/00001.png b/tests_zemu/snapshots/st-sign_transfer_2_legacy/00001.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_2/00001.png rename to tests_zemu/snapshots/st-sign_transfer_2_legacy/00001.png diff --git a/tests_zemu/snapshots/st-sign_transfer_2/00002.png b/tests_zemu/snapshots/st-sign_transfer_2_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_2/00002.png rename to tests_zemu/snapshots/st-sign_transfer_2_legacy/00002.png diff --git a/tests_zemu/snapshots/st-sign_transfer_2/00003.png b/tests_zemu/snapshots/st-sign_transfer_2_legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_2/00003.png rename to tests_zemu/snapshots/st-sign_transfer_2_legacy/00003.png diff --git a/tests_zemu/snapshots/st-sign_transfer_2/00004.png b/tests_zemu/snapshots/st-sign_transfer_2_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_2/00004.png rename to tests_zemu/snapshots/st-sign_transfer_2_legacy/00004.png diff --git a/tests_zemu/snapshots/st-sign_transfer_2/00005.png b/tests_zemu/snapshots/st-sign_transfer_2_legacy/00005.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_2/00005.png rename to tests_zemu/snapshots/st-sign_transfer_2_legacy/00005.png diff --git a/tests_zemu/snapshots/st-sign_transfer_2/00006.png b/tests_zemu/snapshots/st-sign_transfer_2_legacy/00006.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_2/00006.png rename to tests_zemu/snapshots/st-sign_transfer_2_legacy/00006.png diff --git a/tests_zemu/snapshots/st-sign_transfer_2_legacy/00007.png b/tests_zemu/snapshots/st-sign_transfer_2_legacy/00007.png new file mode 100644 index 0000000..936d633 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00000.png b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00000.png new file mode 100644 index 0000000..64fcdf3 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00001.png b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00001.png new file mode 100644 index 0000000..21b648f Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00002.png b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00002.png new file mode 100644 index 0000000..bb8141e Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00003.png b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00003.png new file mode 100644 index 0000000..db5273c Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00004.png b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00004.png new file mode 100644 index 0000000..74ddd65 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00005.png b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00005.png new file mode 100644 index 0000000..e6bb0d1 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00006.png b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00006.png new file mode 100644 index 0000000..936d633 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_create_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_create_2/00000.png b/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00000.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_create_2/00000.png rename to tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00000.png diff --git a/tests_zemu/snapshots/st-sign_transfer_create_2/00001.png b/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00001.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_create_2/00001.png rename to tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00001.png diff --git a/tests_zemu/snapshots/st-sign_transfer_create_2/00002.png b/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_create_2/00002.png rename to tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00002.png diff --git a/tests_zemu/snapshots/st-sign_transfer_create_2/00003.png b/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_create_2/00003.png rename to tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00003.png diff --git a/tests_zemu/snapshots/st-sign_transfer_create_2/00004.png b/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_create_2/00004.png rename to tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00004.png diff --git a/tests_zemu/snapshots/st-sign_transfer_create_2/00005.png b/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00005.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_create_2/00005.png rename to tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00005.png diff --git a/tests_zemu/snapshots/st-sign_transfer_create_2/00006.png b/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00006.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_create_2/00006.png rename to tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00006.png diff --git a/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00007.png b/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00007.png new file mode 100644 index 0000000..936d633 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_create_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00000.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00000.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00000.png rename to tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00000.png diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00001.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00001.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00001.png rename to tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00001.png diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00002.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00002.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00002.png rename to tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00002.png diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00003.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00003.png new file mode 100644 index 0000000..aa5ec7c Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00004.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00004.png new file mode 100644 index 0000000..c0a7af8 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00005.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00005.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00005.png rename to tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00005.png diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00006.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00006.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00006.png rename to tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00006.png diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00007.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00007.png new file mode 100644 index 0000000..936d633 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_cross_chain_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00000.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00000.png new file mode 100644 index 0000000..f31f00d Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00001.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00001.png new file mode 100644 index 0000000..65ff275 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00002.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00002.png new file mode 100644 index 0000000..76e2485 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00003.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00003.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00003.png rename to tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00003.png diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00004.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00004.png similarity index 100% rename from tests_zemu/snapshots/st-sign_transfer_cross_chain_2/00004.png rename to tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00004.png diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00005.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00005.png new file mode 100644 index 0000000..adddb25 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00006.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00006.png new file mode 100644 index 0000000..38b104e Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00007.png b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00007.png new file mode 100644 index 0000000..936d633 Binary files /dev/null and b/tests_zemu/snapshots/st-sign_transfer_cross_chain_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/x-sign_hash_2_legacy/00000.png b/tests_zemu/snapshots/x-sign_hash_2_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_hash_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/x-sign_hash_2_legacy/00001.png b/tests_zemu/snapshots/x-sign_hash_2_legacy/00001.png new file mode 100644 index 0000000..974d2e7 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_hash_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/x-sign_hash_2_legacy/00002.png b/tests_zemu/snapshots/x-sign_hash_2_legacy/00002.png new file mode 100644 index 0000000..a58dfd1 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_hash_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/x-sign_hash_2_legacy/00003.png b/tests_zemu/snapshots/x-sign_hash_2_legacy/00003.png new file mode 100644 index 0000000..15de6b1 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_hash_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/x-sign_hash_2_legacy/00004.png b/tests_zemu/snapshots/x-sign_hash_2_legacy/00004.png new file mode 100644 index 0000000..e2f1fad Binary files /dev/null and b/tests_zemu/snapshots/x-sign_hash_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/x-sign_hash_2_legacy/00005.png b/tests_zemu/snapshots/x-sign_hash_2_legacy/00005.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_hash_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/x-sign_hash_2_legacy/00006.png b/tests_zemu/snapshots/x-sign_hash_2_legacy/00006.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_hash_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/x-sign_hash_2_legacy/00007.png b/tests_zemu/snapshots/x-sign_hash_2_legacy/00007.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_hash_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/x-sign_hash_2_legacy/00008.png b/tests_zemu/snapshots/x-sign_hash_2_legacy/00008.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/x-sign_hash_2_legacy/00008.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00000.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00001.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00002.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00003.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00004.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00005.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00006.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00007.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00007.png new file mode 100644 index 0000000..1780e8f Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00008.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00008.png new file mode 100644 index 0000000..1108ca2 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00008.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00009.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00009.png new file mode 100644 index 0000000..3508ae4 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00009.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00010.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00010.png new file mode 100644 index 0000000..b52ee6c Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00010.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00011.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00011.png new file mode 100644 index 0000000..131116b Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00011.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00012.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00012.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00012.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00013.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00013.png new file mode 100644 index 0000000..c9d8a33 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00013.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00014.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00014.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00014.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00015.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00015.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00015.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00016.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00016.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00016.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_2_legacy/00017.png b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00017.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_2_legacy/00017.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00000.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00001.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00002.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00003.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00004.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00005.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00006.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00007.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00007.png new file mode 100644 index 0000000..56502bb Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00008.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00008.png new file mode 100644 index 0000000..249687b Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00008.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00009.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00009.png new file mode 100644 index 0000000..d82d455 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00009.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00010.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00010.png new file mode 100644 index 0000000..2115358 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00010.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00011.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00011.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00011.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00012.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00012.png new file mode 100644 index 0000000..3986742 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00012.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00013.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00013.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00013.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00014.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00014.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00014.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00015.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00015.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00015.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00016.png b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00016.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_1_legacy/00016.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00000.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00001.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00002.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00003.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00004.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00005.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00006.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00007.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00007.png new file mode 100644 index 0000000..1780e8f Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00008.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00008.png new file mode 100644 index 0000000..1108ca2 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00008.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00009.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00009.png new file mode 100644 index 0000000..3508ae4 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00009.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00010.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00010.png new file mode 100644 index 0000000..33cd8cf Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00010.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00011.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00011.png new file mode 100644 index 0000000..2115358 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00011.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00012.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00012.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00012.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00013.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00013.png new file mode 100644 index 0000000..3794349 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00013.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00014.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00014.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00014.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00015.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00015.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00015.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00016.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00016.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00016.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00017.png b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00017.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_create_2_legacy/00017.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00000.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00000.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00001.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00001.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00002.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00002.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00003.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00003.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00004.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00004.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00005.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00005.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00006.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00006.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00007.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00007.png new file mode 100644 index 0000000..9d45c59 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00007.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00008.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00008.png new file mode 100644 index 0000000..6aa291c Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00008.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00009.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00009.png new file mode 100644 index 0000000..5e20eda Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00009.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00010.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00010.png new file mode 100644 index 0000000..8d25ff4 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00010.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00011.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00011.png new file mode 100644 index 0000000..2115358 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00011.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00012.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00012.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00012.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00013.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00013.png new file mode 100644 index 0000000..f6cdcdf Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00013.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00014.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00014.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00014.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00015.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00015.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00015.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00016.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00016.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00016.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00017.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00017.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_1_legacy/00017.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00000.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00000.png new file mode 100644 index 0000000..33a7bd8 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00000.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00001.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00001.png new file mode 100644 index 0000000..ba22ea5 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00001.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00002.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00002.png new file mode 100644 index 0000000..8b66af1 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00002.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00003.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00003.png new file mode 100644 index 0000000..e4ade64 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00003.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00004.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00004.png new file mode 100644 index 0000000..024f1c6 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00004.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00005.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00005.png new file mode 100644 index 0000000..76cd8f9 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00005.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00006.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00006.png new file mode 100644 index 0000000..99f0b15 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00006.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00007.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00007.png new file mode 100644 index 0000000..560c02d Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00007.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00008.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00008.png new file mode 100644 index 0000000..f9bd49f Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00008.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00009.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00009.png new file mode 100644 index 0000000..1bf1363 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00009.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00010.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00010.png new file mode 100644 index 0000000..a3a7099 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00010.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00011.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00011.png new file mode 100644 index 0000000..2115358 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00011.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00012.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00012.png new file mode 100644 index 0000000..d41cee4 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00012.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00013.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00013.png new file mode 100644 index 0000000..332d6ae Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00013.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00014.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00014.png new file mode 100644 index 0000000..7234d99 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00014.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00015.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00015.png new file mode 100644 index 0000000..0c0a855 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00015.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00016.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00016.png new file mode 100644 index 0000000..1e4be69 Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00016.png differ diff --git a/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00017.png b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00017.png new file mode 100644 index 0000000..58ec4be Binary files /dev/null and b/tests_zemu/snapshots/x-sign_transfer_cross_chain_2_legacy/00017.png differ diff --git a/tests_zemu/tests/common.ts b/tests_zemu/tests/common.ts index 23bce42..dbad9d8 100644 --- a/tests_zemu/tests/common.ts +++ b/tests_zemu/tests/common.ts @@ -11,11 +11,11 @@ const APP_PATH_ST = resolve('../app/output/app_stax.elf') const APP_PATH_FL = resolve('../app/output/app_flex.elf') export const models: IDeviceModel[] = [ - // { name: 'nanos', prefix: 'S', path: APP_PATH_S }, + { name: 'nanos', prefix: 'S', path: APP_PATH_S }, { name: 'nanox', prefix: 'X', path: APP_PATH_X }, - // { name: 'nanosp', prefix: 'SP', path: APP_PATH_SP }, - // { name: 'stax', prefix: 'ST', path: APP_PATH_ST }, - // { name: 'flex', prefix: 'FL', path: APP_PATH_FL }, + { name: 'nanosp', prefix: 'SP', path: APP_PATH_SP }, + { name: 'stax', prefix: 'ST', path: APP_PATH_ST }, + { name: 'flex', prefix: 'FL', path: APP_PATH_FL }, ] export const PATH = "m/44'/626'/0'/0/0" diff --git a/tests_zemu/tests/legacy.test.ts b/tests_zemu/tests/legacy.test.ts index d4b25e2..369c68d 100644 --- a/tests_zemu/tests/legacy.test.ts +++ b/tests_zemu/tests/legacy.test.ts @@ -14,27 +14,35 @@ * limitations under the License. ******************************************************************************* */ -import Zemu, { ButtonKind, zondaxMainmenuNavigation, isTouchDevice } from '@zondax/zemu' -import Kda from "hw-app-kda"; +import Zemu, { ButtonKind, isTouchDevice } from '@zondax/zemu' +import Kda from 'hw-app-kda' import { PATH, defaultOptions, models } from './common' import { blake2bFinal, blake2bInit, blake2bUpdate } from 'blakejs' import { JSON_TEST_CASES } from './testscases/json' import { HASH_TEST_CASES } from './testscases/hash' +import { TRANSACTIONS_TEST_CASES } from './testscases/transactions' import { TRANSACTIONS_LEGACY_TEST_CASES } from './testscases/transactions' import { APDU_TEST_CASES } from './testscases/legacy_apdu' + // @ts-expect-error import ed25519 from 'ed25519-supercop' jest.setTimeout(60000) +export enum TransferTxType { + TRANSFER = 0, + TRANSFER_CREATE = 1, + TRANSFER_CROSS_CHAIN = 2, +} + const expected_pk = 'de12b5e16b93fe81ca4d70656bee4334f2e40f9f28b9796e792d28f2cead74ad' test.concurrent.each(models)('get address', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) - const app = new Kda(sim.getTransport()); + const app = new Kda(sim.getTransport()) try { const responseAddr = await app.getPublicKey(PATH) @@ -60,7 +68,7 @@ test.concurrent.each(models)('legacy show address', async function (m) { approveKeyword: isTouchDevice(m.name) ? 'Confirm' : '', approveAction: ButtonKind.ApproveTapButton, }) - const app = new Kda(sim.getTransport()); + const app = new Kda(sim.getTransport()) const responseAddr = app.verifyAddress(PATH) @@ -87,7 +95,7 @@ test.concurrent.each(models)('legacy show address - reject', async function (m) approveKeyword: isTouchDevice(m.name) ? 'Confirm' : '', approveAction: ButtonKind.ApproveTapButton, }) - const app = new Kda(sim.getTransport()); + const app = new Kda(sim.getTransport()) const respRequest = app.verifyAddress(PATH) @@ -104,18 +112,18 @@ test.concurrent.each(models)('legacy show address - reject', async function (m) } }) -describe.each(JSON_TEST_CASES)('Tx transactions', function (data) { +describe.each(JSON_TEST_CASES)('Tx json', function (data) { test.concurrent.each(models)('sign json', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) - const app = new Kda(sim.getTransport()); + const app = new Kda(sim.getTransport()) - const txBlob = Buffer.from(data.json, "utf-8") - const { publicKey } = await app.getPublicKey(data.path); + const txBlob = Buffer.from(data.json, 'utf-8') + const { publicKey } = await app.getPublicKey(data.path) // do not wait here.. we need to navigate - const signatureRequest = app.signTransaction(data.path, txBlob); + const signatureRequest = app.signTransaction(data.path, txBlob) // // Wait until we are not in the main menu await sim.waitUntilScreenIsNot(sim.getMainMenuSnapshot()) @@ -123,8 +131,8 @@ describe.each(JSON_TEST_CASES)('Tx transactions', function (data) { const signatureResponse = await signatureRequest - console.log("Pubkey: ", publicKey.toString('hex')) - console.log("Signature: ", signatureResponse.signature.toString('hex')) + console.log('Pubkey: ', publicKey.toString('hex')) + console.log('Signature: ', signatureResponse.signature.toString('hex')) const context = blake2bInit(32) blake2bUpdate(context, txBlob) @@ -140,14 +148,15 @@ describe.each(JSON_TEST_CASES)('Tx transactions', function (data) { }) describe.each(HASH_TEST_CASES)('Hash transactions', function (data) { - test.concurrent.each(models)('sign', async function (m) { + test.concurrent.each(models)('sign hash', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) - const app = new Kda(sim.getTransport()); + const app = new Kda(sim.getTransport()) - const { publicKey } = await app.getPublicKey(data.path); + const { publicKey } = await app.getPublicKey(data.path) + await sim.toggleExpertMode() // do not wait here... we need to navigate const signatureRequest = app.signHash(data.path, data.hash) @@ -157,23 +166,14 @@ describe.each(HASH_TEST_CASES)('Hash transactions', function (data) { const signatureResponse = await signatureRequest - const rawHash = - typeof data.hash == 'string' - ? data.hash.length == 64 - ? Buffer.from(data.hash, 'hex') - : Buffer.from(data.hash, 'base64') - : Buffer.from(data.hash) + const rawHash = data.hash.length == 64 ? Buffer.from(data.hash, 'hex') : Buffer.from(data.hash, 'base64') - console.log("Pubkey: ", publicKey.toString('hex')) - console.log("Signature: ", signatureResponse.signature.toString('hex')) - console.log("Raw Hash: ", rawHash.toString('hex')) - - const context = blake2bInit(32) - blake2bUpdate(context, rawHash) - const hash = Buffer.from(blake2bFinal(context)) + console.log('Pubkey: ', publicKey.toString('hex')) + console.log('Signature: ', signatureResponse.signature.toString('hex')) + console.log('Raw Hash: ', rawHash.toString('hex')) // Now verify the signature - const valid = ed25519.verify(signatureResponse.signature, hash, publicKey) + const valid = ed25519.verify(signatureResponse.signature, rawHash, publicKey) expect(valid).toEqual(true) } finally { await sim.close() @@ -181,28 +181,42 @@ describe.each(HASH_TEST_CASES)('Hash transactions', function (data) { }) }) -describe.each(TRANSACTIONS_LEGACY_TEST_CASES)('Tx transactions', function (data) { - test.only.each(models)('sign', async function (m) { +describe.each(TRANSACTIONS_TEST_CASES)('Tx transfer', function (data) { + test.concurrent.each(models)('sign transfer tx', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) - const app = new Kda(sim.getTransport()); + const app = new Kda(sim.getTransport()) - const { publicKey } = await app.getPublicKey(data.txParams.path); + const { publicKey } = await app.getPublicKey(data.txParams.path) // do not wait here... we need to navigate - let signatureRequest = app["signTransferTx"](data.txParams); + var signatureRequest = null + if (data.type === TransferTxType.TRANSFER) { + signatureRequest = app['signTransferTx'](data.txParams) + } else if (data.type === TransferTxType.TRANSFER_CREATE) { + signatureRequest = app['signTransferCreateTx'](data.txParams) + } else if (data.type === TransferTxType.TRANSFER_CROSS_CHAIN) { + signatureRequest = app['signTransferCrossChainTx'](data.txParams) + } await sim.waitUntilScreenIsNot(sim.getMainMenuSnapshot()) await sim.compareSnapshotsAndApprove('.', `${m.prefix.toLowerCase()}-sign_${data.name}_legacy`) // Wait until we are not in the main menu const signatureResponse = await signatureRequest - console.log("Pubkey: ", publicKey.toString('hex')) - console.log("Signature: ", signatureResponse.signature) + + console.log(signatureResponse) + + const signatureHex = signatureResponse.pact_command.sigs[0].sig + const decodedHash = decodeHash(signatureResponse.pact_command.hash) + + console.log('Pubkey: ', publicKey.toString('hex')) + console.log('Signature: ', signatureHex.toString('hex')) + console.log('Decoded Hash: ', decodedHash.toString('hex')) // Now verify the signature - const valid = ed25519.verify(signatureResponse.signature, signatureResponse.hash, publicKey) + const valid = ed25519.verify(signatureHex, decodedHash, publicKey) expect(valid).toEqual(true) } finally { await sim.close() @@ -215,15 +229,24 @@ describe.each(APDU_TEST_CASES)('APDU tests ', function (data) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) - const app = new Kda(sim.getTransport()); + const app = new Kda(sim.getTransport()) - const txBlob = Buffer.from(data.json, "utf-8") + const txBlob = Buffer.from(data.json, 'utf-8') // do not wait here.. we need to navigate - await expect(app.signTransaction(data.path, txBlob)).rejects.toThrow('Ledger device: UNKNOWN_ERROR (0xe001)'); - + await expect(app.signTransaction(data.path, txBlob)).rejects.toThrow('Ledger device: UNKNOWN_ERROR (0xe001)') } finally { await sim.close() } }) }) + +function decodeHash(encodedHash: string) { + let base64Hash = encodedHash.replace(/-/g, '+').replace(/_/g, '/') + + while (base64Hash.length % 4) { + base64Hash += '=' + } + + return Buffer.from(base64Hash, 'base64') +} diff --git a/tests_zemu/tests/standard.test.ts b/tests_zemu/tests/standard.test.ts index 05ebf3a..f89288e 100644 --- a/tests_zemu/tests/standard.test.ts +++ b/tests_zemu/tests/standard.test.ts @@ -17,11 +17,6 @@ import Zemu, { ButtonKind, zondaxMainmenuNavigation, isTouchDevice } from '@zondax/zemu' import { KadenaApp } from '@zondax/ledger-kadena' import { PATH, defaultOptions, models } from './common' -import { blake2bFinal, blake2bInit, blake2bUpdate } from 'blakejs' - -// @ts-expect-error -import ed25519 from 'ed25519-supercop' -import { JSON_TEST_CASES } from './testscases/json' jest.setTimeout(60000) @@ -147,38 +142,4 @@ describe('Standard', function () { await sim.close() } }) - - describe.each(JSON_TEST_CASES)('Tx transactions', function (data) { - test.only.each(models)('sign json', async function (m) { - const sim = new Zemu(m.path) - try { - await sim.start({ ...defaultOptions, model: m.name }) - const app = new KadenaApp(sim.getTransport()) - - const txBlob = Buffer.from(data.json, "utf-8") - const responseAddr = await app.getAddressAndPubKey(data.path, false) - const pubKey = responseAddr.pubkey - - // do not wait here.. we need to navigate - const signatureRequest = app.sign(data.path, txBlob) - - // Wait until we are not in the main menu - await sim.waitUntilScreenIsNot(sim.getMainMenuSnapshot()) - await sim.compareSnapshotsAndApprove('.', `${m.prefix.toLowerCase()}-sign_${data.name}`) - - const signatureResponse = await signatureRequest - console.log(signatureResponse) - - const context = blake2bInit(32) - blake2bUpdate(context, txBlob) - const hash = Buffer.from(blake2bFinal(context)) - - // Now verify the signature - const valid = ed25519.verify(signatureResponse.signature, hash, pubKey) - expect(valid).toEqual(true) - } finally { - await sim.close() - } - }) - }) }) diff --git a/tests_zemu/tests/testscases/hash.ts b/tests_zemu/tests/testscases/hash.ts index bed7072..993017f 100644 --- a/tests_zemu/tests/testscases/hash.ts +++ b/tests_zemu/tests/testscases/hash.ts @@ -6,9 +6,9 @@ export const HASH_TEST_CASES = [ hash: 'ffd8cd79deb956fa3c7d9be0f836f20ac84b140168a087a842be4760e40e2b1c', path: PATH, }, - // { - // name: 'hash_2', - // hash: '_9jNed65Vvo8fZvg-DbyCshLFAFooIeoQr5HYOQOKxw', - // path: PATH, - // }, + { + name: 'hash_2', + hash: '_9jNed65Vvo8fZvg-DbyCshLFAFooIeoQr5HYOQOKxw', + path: PATH, + }, ] diff --git a/tests_zemu/tests/testscases/json.ts b/tests_zemu/tests/testscases/json.ts index 18c91df..ad473bc 100644 --- a/tests_zemu/tests/testscases/json.ts +++ b/tests_zemu/tests/testscases/json.ts @@ -1,9 +1,9 @@ import { PATH } from '../common' -export const JSON_TEST_CASES = [ +export const JSON_TEST_CASES = [ { name: 'simple_transfer', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42\\" 11.0)"}},"signers":[{"pubKey":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","clist":[{"args":[],"name":"coin.GAS"},{"args":["83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42",11],"name":"coin.TRANSFER"}]}],"meta":{"creationTime":1634009214,"ttl":28800,"gasLimit":600,"chainId":"0","gasPrice":1.0e-5,"sender":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790"},"nonce":"\\"2021-10-12T03:27:53.700Z\\""}', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42\\" 11.0)"}},"signers":[{"pubKey":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","clist":[{"args":[],"name":"coin.GAS"},{"args":["83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42",11],"name":"coin.TRANSFER"}]}],"meta":{"creationTime":1634009214,"ttl":28800,"gasLimit":600,"chainId":"0","gasPrice":1.0e-5,"sender":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790"},"nonce":"\\"2021-10-12T03:27:53.700Z\\""}', path: PATH, }, -] \ No newline at end of file +] diff --git a/tests_zemu/tests/testscases/legacy_apdu.ts b/tests_zemu/tests/testscases/legacy_apdu.ts index b1eb065..e047169 100644 --- a/tests_zemu/tests/testscases/legacy_apdu.ts +++ b/tests_zemu/tests/testscases/legacy_apdu.ts @@ -3,84 +3,84 @@ import { PATH } from '../common' export const APDU_TEST_CASES = [ { name: 'test_apdu_legacy_blob_100', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba35', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba35', path: PATH, }, { name: 'test_apdu_legacy_blob_204', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54)', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54)', path: PATH, - }, + }, { name: 'test_apdu_legacy_blob_205', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54d)', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54d)', path: PATH, - }, + }, { name: 'test_apdu_legacy_blob_206', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54da)', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54da)', path: PATH, - }, + }, { name: 'test_apdu_legacy_blob_220', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42\\" 11.0)', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42\\" 11.0)', path: PATH, }, { name: 'test_apdu_legacy_blob_435', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42\\" 11.0)"}},"signers":[{"pubKey":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","clist":[{"args":[],"name":"coin.GAS"},{"args":["83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","9790d11', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42\\" 11.0)"}},"signers":[{"pubKey":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","clist":[{"args":[],"name":"coin.GAS"},{"args":["83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","9790d11', path: PATH, - }, + }, { name: 'test_apdu_legacy_blob_all', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42\\" 11.0)"}},"signers":[{"pubKey":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","clist":[{"args":[],"name":"coin.GAS"},{"args":["83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42",11],"name":"coin.TRANSFER"}]}],"meta":{"creationTime":1634009214,"ttl":28800,"gasLimit":600,"chainId":"0","gasPrice":1.0e-5,"sender":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790"', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42\\" 11.0)"}},"signers":[{"pubKey":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","clist":[{"args":[],"name":"coin.GAS"},{"args":["83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790","9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54dae6ebb42",11],"name":"coin.TRANSFER"}]}],"meta":{"creationTime":1634009214,"ttl":28800,"gasLimit":600,"chainId":"0","gasPrice":1.0e-5,"sender":"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790"', path: PATH, }, { name: 'test_apdu_legacy_blob_208', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54)0000', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54)0000', path: "m/44'/626'/0'/0", - }, + }, { name: 'test_apdu_legacy_blob_209', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54d)0000', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54d)0000', path: "m/44'/626'/0'/0", - }, + }, { name: 'test_apdu_legacy_blob_210', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54da)0000', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54da)0000', path: "m/44'/626'/0'/0", - }, + }, { name: 'test_apdu_legacy_blob_212', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54)00000000', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54)00000000', path: "m/44'/626'/0'", - }, + }, { name: 'test_apdu_legacy_blob_213', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54d)00000000', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54d)00000000', path: "m/44'/626'/0'", - }, + }, { name: 'test_apdu_legacy_blob_214', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54da)00000000', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54da)00000000', path: "m/44'/626'/0'", - }, + }, { name: 'test_apdu_legacy_blob_216', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54)000000000000', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54)000000000000', path: "m/44'/626'/0'", - }, + }, { name: 'test_apdu_legacy_blob_217', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54d)000000000000', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54d)000000000000', path: "m/44'/626'", - }, + }, { name: 'test_apdu_legacy_blob_218', - json:'{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54da)000000000000', + json: '{"networkId":"mainnet01","payload":{"exec":{"data":{},"code":"(coin.transfer \\"83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" \\"9790d119589a26114e1a42d92598b3f632551c566819ec48e0e8c54da)000000000000', path: "m/44'/626'", - }, -] \ No newline at end of file + }, +] diff --git a/tests_zemu/tests/testscases/transactions.ts b/tests_zemu/tests/testscases/transactions.ts index 9c7599e..333d75c 100644 --- a/tests_zemu/tests/testscases/transactions.ts +++ b/tests_zemu/tests/testscases/transactions.ts @@ -1,6 +1,6 @@ import { PATH } from '../common' import { TransferTxType } from '@zondax/ledger-kadena' -import Kda from "hw-app-kda"; +import Kda from 'hw-app-kda' export const TRANSACTIONS_TEST_CASES = [ { @@ -18,116 +18,43 @@ export const TRANSACTIONS_TEST_CASES = [ ttl: '600', nonce: '2022-10-13 07:56:50.893257 UTC', }, - recipient_chainId: 0, }, - // { - // name: 'transfer_create_1', - // type: TransferTxType.TRANSFER_CREATE, - // path: PATH, - // txParams: { - // recipient: '83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790', - // amount: '23.67', - // network: 'testnet04', - // chainId: 1, - // gasPrice: '1.0e-6', - // gasLimit: '2300', - // creationTime: 1665722463, - // ttl: '600', - // nonce: '2022-10-14 04:41:03.193557 UTC', - // }, - // }, - // { - // name: 'transfer_cross_chain_1', - // type: TransferTxType.TRANSFER_CROSS_CHAIN, - // path: PATH, - // txParams: { - // recipient: '83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790', - // amount: '23.67', - // network: 'testnet04', - // chainId: 1, - // gasPrice: '1.0e-6', - // gasLimit: '2300', - // creationTime: 1665722463, - // ttl: '600', - // nonce: '2022-10-14 04:41:03.193557 UTC', - // }, - // recipient_chainId: 2, - // }, - // { - // name: 'transfer_2', - // type: TransferTxType.TRANSFER, - // path: PATH, - // txParams: { - // recipient: '83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790', - // amount: '1.23', - // namespace: 'free', - // module: 'mytoken-123', - // network: 'testnet04', - // chainId: 0, - // gasPrice: '1.0e-6', - // gasLimit: '2300', - // creationTime: 1665647810, - // ttl: '600', - // nonce: '2022-10-13 07:56:50.893257 UTC', - // }, - // }, - // { - // name: 'transfer_create_2', - // type: TransferTxType.TRANSFER_CREATE, - // path: PATH, - // txParams: { - // recipient: '83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790', - // amount: '23.67', - // namespace: 'free', - // module: 'mytoken-123', - // network: 'testnet04', - // chainId: 1, - // gasPrice: '1.0e-6', - // gasLimit: '2300', - // creationTime: 1665722463, - // ttl: '600', - // nonce: '2022-10-14 04:41:03.193557 UTC', - // }, - // }, - // { - // name: 'transfer_cross_chain_2', - // type: TransferTxType.TRANSFER_CROSS_CHAIN, - // path: PATH, - // txParams: { - // recipient: '83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790', - // amount: '23.67', - // namespace: 'free', - // module: 'mytoken-123', - // network: 'testnet04', - // chainId: 1, - // gasPrice: '1.0e-6', - // gasLimit: '2300', - // creationTime: 1665722463, - // ttl: '600', - // nonce: '2022-10-14 04:41:03.193557 UTC', - // }, - // recipient_chainId: 2, - // }, -] - -export const TRANSACTIONS_LEGACY_TEST_CASES = [ { - name: 'transfer_1', - type: TransferTxType.TRANSFER, + name: 'transfer_create_1', + type: TransferTxType.TRANSFER_CREATE, txParams: { path: PATH, recipient: '83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790', - amount: "1.23", - network: "testnet04", - chainId: 0, - gasPrice: "1.0e-6", - gasLimit: "2300", - creationTime: 1665647810, - ttl: "600", - nonce: "2022-10-13 07:56:50.893257 UTC", + amount: '23.67', + network: 'testnet04', + chainId: 1, + gasPrice: '1.0e-6', + gasLimit: '2300', + creationTime: 1665722463, + ttl: '600', + nonce: '2022-10-14 04:41:03.193557 UTC', }, }, - + { + name: 'transfer_cross_chain_1', + type: TransferTxType.TRANSFER_CROSS_CHAIN, + txParams: { + path: PATH, + recipient: '83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790', + amount: '23.67', + network: 'testnet04', + chainId: 1, + gasPrice: '1.0e-6', + gasLimit: '2300', + creationTime: 1665722463, + ttl: '600', + nonce: '2022-10-14 04:41:03.193557 UTC', + recipient_chainId: 2, + }, + }, +] + +export const TRANSACTIONS_LEGACY_TEST_CASES = [ // { // name: 'transfer_test_handler_legacy_len_287', // type: TransferTxType.TRANSFER, @@ -147,7 +74,6 @@ export const TRANSACTIONS_LEGACY_TEST_CASES = [ // }, // blob : '{"networkId":"testnet04","payload":{"exec":{"data":{},"code":"(coin.transfer \\"k:de12b5e16b93fe81ca4d70656bee4334f2e40f9f28b9796e792d28f2cead74ad\\" \\"k:83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" 1.23)"}},"signers":[{"pubKey":"de12b5e16b93fe81ca4d70656bee4334f2e40f9f28b9796e792d28f2cead74ad","clist":[{"args":["k:de12b5e16b93fe81ca4d70656bee4334f2e40f9f28b9796e792d28f2cead74ad","k:83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790",1.23],"name":"coin.TRANSFER"},{"args":[],"name":"coin.GAS"}]}],"meta":{"creationTime":1665647810,"ttl":600,"gasLimit":2300,"chainId":"0","gasPrice":1.0e-6,"sender":"k:de12b5e16b93fe81ca4d70656bee4334f2e40f9f28b9796e792d28f2cead74ad"},"nonce":"2022-10-13 07:56:50.893257 UTC"}', // }, - // { // name: 'transfer_test_handler_legacy_len_285', // type: TransferTxType.TRANSFER, @@ -167,7 +93,6 @@ export const TRANSACTIONS_LEGACY_TEST_CASES = [ // }, // blob : '{"networkId":"testnet04","payload":{"exec":{"data":{},"code":"(coin.transfer \\"k:de12b5e16b93fe81ca4d70656bee4334f2e40f9f28b9796e792d28f2cead74ad\\" \\"k:83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790\\" 1.23)"}},"signers":[{"pubKey":"de12b5e16b93fe81ca4d70656bee4334f2e40f9f28b9796e792d28f2cead74ad","clist":[{"args":["k:de12b5e16b93fe81ca4d70656bee4334f2e40f9f28b9796e792d28f2cead74ad","k:83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790",1.23],"name":"coin.TRANSFER"},{"args":[],"name":"coin.GAS"}]}],"meta":{"creationTime":1665647810,"ttl":600,"gasLimit":2300,"chainId":"0","gasPrice":1.0e-6,"sender":"k:de12b5e16b93fe81ca4d70656bee4334f2e40f9f28b9796e792d28f2cead74ad"},"nonce":"2022-10-13 07:56:50.893257 UTC"}', // }, - // { // name: 'transfer_test_handler_legacy_len_284', // type: TransferTxType.TRANSFER, diff --git a/tests_zemu/tests/transactions.test.ts b/tests_zemu/tests/transactions.test.ts index e662165..787bc27 100644 --- a/tests_zemu/tests/transactions.test.ts +++ b/tests_zemu/tests/transactions.test.ts @@ -14,11 +14,12 @@ * limitations under the License. ******************************************************************************* */ -import Zemu, { ButtonKind, zondaxMainmenuNavigation, isTouchDevice } from '@zondax/zemu' +import Zemu from '@zondax/zemu' import { KadenaApp, TransferTxType, TransferCrossChainTxParams } from '@zondax/ledger-kadena' import { PATH, defaultOptions, models } from './common' import { blake2bFinal, blake2bInit, blake2bUpdate } from 'blakejs' +import { JSON_TEST_CASES } from './testscases/json' import { HASH_TEST_CASES } from './testscases/hash' import { TRANSACTIONS_TEST_CASES } from './testscases/transactions' @@ -27,6 +28,40 @@ import ed25519 from 'ed25519-supercop' jest.setTimeout(60000) +describe.each(JSON_TEST_CASES)('Tx json', function (data) { + test.concurrent.each(models)('sign json', async function (m) { + const sim = new Zemu(m.path) + try { + await sim.start({ ...defaultOptions, model: m.name }) + const app = new KadenaApp(sim.getTransport()) + + const txBlob = Buffer.from(data.json, 'utf-8') + const responseAddr = await app.getAddressAndPubKey(data.path, false) + const pubKey = responseAddr.pubkey + + // do not wait here.. we need to navigate + const signatureRequest = app.sign(data.path, txBlob) + + // Wait until we are not in the main menu + await sim.waitUntilScreenIsNot(sim.getMainMenuSnapshot()) + await sim.compareSnapshotsAndApprove('.', `${m.prefix.toLowerCase()}-sign_${data.name}`) + + const signatureResponse = await signatureRequest + console.log(signatureResponse) + + const context = blake2bInit(32) + blake2bUpdate(context, txBlob) + const hash = Buffer.from(blake2bFinal(context)) + + // Now verify the signature + const valid = ed25519.verify(signatureResponse.signature, hash, pubKey) + expect(valid).toEqual(true) + } finally { + await sim.close() + } + }) +}) + describe.each(HASH_TEST_CASES)('Hash transactions', function (data) { test.concurrent.each(models)('sign hash', async function (m) { const sim = new Zemu(m.path) @@ -37,8 +72,8 @@ describe.each(HASH_TEST_CASES)('Hash transactions', function (data) { const responseAddr = await app.getAddressAndPubKey(data.path) const pubKey = responseAddr.pubkey - // do not wait here... we need to navigate await sim.toggleExpertMode() + // do not wait here... we need to navigate const signatureRequest = app.signHash(data.path, data.hash) // // Wait until we are not in the main menu @@ -64,8 +99,8 @@ describe.each(HASH_TEST_CASES)('Hash transactions', function (data) { }) }) -describe.each(TRANSACTIONS_TEST_CASES)('Tx transactions', function (data) { - test.concurrent.each(models)('sign', async function (m) { +describe.each(TRANSACTIONS_TEST_CASES)('Tx transfer', function (data) { + test.concurrent.each(models)('sign transfer tx', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) @@ -82,8 +117,8 @@ describe.each(TRANSACTIONS_TEST_CASES)('Tx transactions', function (data) { signatureRequest = app.signTransferCreateTx(data.txParams.path, data.txParams) } else if (data.type === TransferTxType.TRANSFER_CROSS_CHAIN) { const transferCrossChainParams = data.txParams as TransferCrossChainTxParams - if (data.recipient_chainId !== undefined) { - transferCrossChainParams.recipient_chainId = data.recipient_chainId + if (data.txParams.recipient_chainId !== undefined) { + transferCrossChainParams.recipient_chainId = data.txParams.recipient_chainId } else { throw new Error('recipient_chainId is undefined') } @@ -102,6 +137,10 @@ describe.each(TRANSACTIONS_TEST_CASES)('Tx transactions', function (data) { const decodedHash = decodeHash(signatureResponse.hash) + console.log('Pubkey: ', pubKey.toString('hex')) + console.log('Signature: ', signatureResponse.signature.toString('hex')) + console.log('Decoded Hash: ', decodedHash.toString('hex')) + // Now verify the signature const valid = ed25519.verify(signatureResponse.signature, decodedHash, pubKey) expect(valid).toEqual(true) @@ -112,11 +151,11 @@ describe.each(TRANSACTIONS_TEST_CASES)('Tx transactions', function (data) { }) function decodeHash(encodedHash: string): Buffer { - let base64Hash = encodedHash.replace(/-/g, '+').replace(/_/g, '/'); - + let base64Hash = encodedHash.replace(/-/g, '+').replace(/_/g, '/') + while (base64Hash.length % 4) { - base64Hash += '='; + base64Hash += '=' } - - return Buffer.from(base64Hash, 'base64'); -} \ No newline at end of file + + return Buffer.from(base64Hash, 'base64') +} diff --git a/tests_zemu/try.mjs b/tests_zemu/try.mjs index 26c19ab..eeba1de 100644 --- a/tests_zemu/try.mjs +++ b/tests_zemu/try.mjs @@ -21,11 +21,11 @@ async function verifySignature(signature, message, publicKey, computeBlake2b = t } function decodeHash(encodedHash) { - let base64Hash = encodedHash.replace(/-/g, '+').replace(/_/g, '/'); + let base64Hash = encodedHash.replace(/-/g, '+').replace(/_/g, '/') while (base64Hash.length % 4) { - base64Hash += '='; + base64Hash += '=' } - return Buffer.from(base64Hash, 'base64'); + return Buffer.from(base64Hash, 'base64') } async function main() { @@ -46,7 +46,7 @@ async function main() { console.log('Version', resp) // Sign a transaction - console.log("Signing a transaction") + console.log('Signing a transaction') const blob = '{"networkId":"mainnet01","payload":{"exec":{"data":{"ks":{"pred":"keys-all","keys":["368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca"]}},"code":"(coin.transfer-create \\"alice\\" \\"bob\\" (read-keyset \\"ks\\") 100.1)\\n(coin.transfer \\"bob\\" \\"alice\\" 0.1)"}},"signers":[{"pubKey":"6be2f485a7af75fedb4b7f153a903f7e6000ca4aa501179c91a2450b777bd2a7","clist":[{"args":["alice","bob",100.1],"name":"coin.TRANSFER"},{"args":[],"name":"coin.GAS"}]},{"pubKey":"368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca","clist":[{"args":["bob","alice",0.1],"name":"coin.TRANSFER"}]}],"meta":{"creationTime":1580316382,"ttl":7200,"gasLimit":1200,"chainId":"0","gasPrice":1.0e-5,"sender":"alice"},"nonce":"2020-01-29 16:46:22.916695 UTC"}' let messageToSign = Buffer.from(blob) @@ -59,24 +59,24 @@ async function main() { await verifySignature(signatureResponse.signature, messageToSign, pubKey) // Sign a hash - console.log("Signing a hash") + console.log('Signing a hash') messageToSign = 'ffd8cd79deb956fa3c7d9be0f836f20ac84b140168a087a842be4760e40e2b1c' console.log(messageToSign.toString()) - signatureRequest = app.signHash(PATH, messageToSign); + signatureRequest = app.signHash(PATH, messageToSign) signatureResponse = await signatureRequest console.log(signatureResponse.signature.toString('hex')) const rawHash = - typeof messageToSign== 'string' - ? messageToSign.length == 64 - ? Buffer.from(messageToSign, 'hex') - : Buffer.from(messageToSign, 'base64') - : Buffer.from(messageToSign) + typeof messageToSign == 'string' + ? messageToSign.length == 64 + ? Buffer.from(messageToSign, 'hex') + : Buffer.from(messageToSign, 'base64') + : Buffer.from(messageToSign) await verifySignature(signatureResponse.signature, rawHash, pubKey, false) - console.log("Signing a transfer") + console.log('Signing a transfer') const txParams = { path: PATH, recipient: '83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790', @@ -88,7 +88,7 @@ async function main() { creationTime: 1665647810, ttl: '600', nonce: '2022-10-13 07:56:50.893257 UTC', - }; + } signatureRequest = app.signTransferTx(txParams.path, txParams) signatureResponse = await signatureRequest @@ -96,7 +96,7 @@ async function main() { console.log(signatureResponse.signature.toString('hex')) console.log(decodedHash.toString('hex')) - + await verifySignature(signatureResponse.signature, decodedHash, pubKey, false) } diff --git a/tests_zemu/try_legacy.mjs b/tests_zemu/try_legacy.mjs index 367759f..f89f717 100644 --- a/tests_zemu/try_legacy.mjs +++ b/tests_zemu/try_legacy.mjs @@ -1,5 +1,5 @@ import TransportNodeHid from '@ledgerhq/hw-transport-node-hid' -import Kda from 'hw-app-kda'; +import Kda from 'hw-app-kda' import { ed25519 } from '@noble/curves/ed25519' import pkg from 'blakejs' const { blake2bFinal, blake2bInit, blake2bUpdate } = pkg @@ -21,31 +21,31 @@ async function verifySignature(signature, message, publicKey, computeBlake2b = t } function decodeHash(encodedHash) { - let base64Hash = encodedHash.replace(/-/g, '+').replace(/_/g, '/'); - + let base64Hash = encodedHash.replace(/-/g, '+').replace(/_/g, '/') + while (base64Hash.length % 4) { - base64Hash += '='; + base64Hash += '=' } - - return Buffer.from(base64Hash, 'base64'); + + return Buffer.from(base64Hash, 'base64') } async function main() { const transport = await TransportNodeHid.default.open() - const app = new Kda.default(transport);; + const app = new Kda.default(transport) const PATH = "m/44'/626'/0'/0/0" //const PATH_TESTNET = "m/44'/1'/0'/0'/0'" - const { publicKey } = await app.getPublicKey(PATH); - console.log("Pubkey: ", publicKey.toString('hex')) + const { publicKey } = await app.getPublicKey(PATH) + console.log('Pubkey: ', publicKey.toString('hex')) - // Sign a transaction - console.log("Signing a transaction") + // Sign a transaction + console.log('Signing a transaction') const blob = '{"networkId":"mainnet01","payload":{"exec":{"data":{"ks":{"pred":"keys-all","keys":["368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca"]}},"code":"(coin.transfer-create \\"alice\\" \\"bob\\" (read-keyset \\"ks\\") 100.1)\\n(coin.transfer \\"bob\\" \\"alice\\" 0.1)"}},"signers":[{"pubKey":"6be2f485a7af75fedb4b7f153a903f7e6000ca4aa501179c91a2450b777bd2a7","clist":[{"args":["alice","bob",100.1],"name":"coin.TRANSFER"},{"args":[],"name":"coin.GAS"}]},{"pubKey":"368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca","clist":[{"args":["bob","alice",0.1],"name":"coin.TRANSFER"}]}],"meta":{"creationTime":1580316382,"ttl":7200,"gasLimit":1200,"chainId":"0","gasPrice":1.0e-5,"sender":"alice"},"nonce":"2020-01-29 16:46:22.916695 UTC"}' let messageToSign = Buffer.from(blob) console.log(messageToSign.toString()) - let signatureRequest = app.signTransaction(PATH, messageToSign); + let signatureRequest = app.signTransaction(PATH, messageToSign) let signatureResponse = await signatureRequest console.log(signatureResponse.signature.toString('hex')) @@ -53,10 +53,10 @@ async function main() { await verifySignature(signatureResponse.signature, messageToSign, publicKey) // Sign a hash - console.log("Signing a hash") + console.log('Signing a hash') messageToSign = 'ffd8cd79deb956fa3c7d9be0f836f20ac84b140168a087a842be4760e40e2b1c' console.log(messageToSign.toString()) - signatureRequest = app.signHash(PATH, messageToSign); + signatureRequest = app.signHash(PATH, messageToSign) signatureResponse = await signatureRequest console.log(messageToSign.toString()) @@ -65,7 +65,7 @@ async function main() { await verifySignature(signatureResponse.signature, messageToSign, publicKey, false) // Sign a hash - console.log("Signing a transfer") + console.log('Signing a transfer') const txParams = { path: PATH, recipient: '83934c0f9b005f378ba3520f9dea952fb0a90e5aa36f1b5ff837d9b30c471790', @@ -77,14 +77,14 @@ async function main() { creationTime: 1665647810, ttl: '600', nonce: '2022-10-13 07:56:50.893257 UTC', - }; + } - signatureRequest = app["signTransferTx"](txParams); + signatureRequest = app['signTransferTx'](txParams) signatureResponse = await signatureRequest // Convert hex string signature to Uint8Array - const signatureHex = signatureResponse.pact_command.sigs[0].sig; - const signatureBytes = new Uint8Array(Buffer.from(signatureHex, 'hex')); + const signatureHex = signatureResponse.pact_command.sigs[0].sig + const signatureBytes = new Uint8Array(Buffer.from(signatureHex, 'hex')) const hashBytes = decodeHash(signatureResponse.pact_command.hash) @@ -97,4 +97,3 @@ async function main() { ;(async () => { await main() })() - diff --git a/tests_zemu/types/hw-app-kda.d.ts b/tests_zemu/types/hw-app-kda.d.ts index b5259a8..9fd272c 100644 --- a/tests_zemu/types/hw-app-kda.d.ts +++ b/tests_zemu/types/hw-app-kda.d.ts @@ -1 +1 @@ -declare module 'hw-app-kda'; \ No newline at end of file +declare module 'hw-app-kda'