diff --git a/glyphs/app_phantasma_16px.gif b/glyphs/app_phantasma_16px.gif new file mode 100644 index 0000000..d792b08 Binary files /dev/null and b/glyphs/app_phantasma_16px.gif differ diff --git a/src/ui/menu_bagl.c b/src/ui/menu_bagl.c index d01b634..36ef4e2 100644 --- a/src/ui/menu_bagl.c +++ b/src/ui/menu_bagl.c @@ -28,7 +28,7 @@ static char g_address[ADDRESS_LEN]; -UX_STEP_NOCB(ux_menu_ready_step, pnn, {&C_phantasma_logo, "Phantasma", "is ready"}); +UX_STEP_NOCB(ux_menu_ready_step, pnn, {&C_app_phantasma_16px, "Phantasma", "is ready"}); UX_STEP_NOCB(ux_menu_version_step, bn, {"Version", APPVERSION}); UX_STEP_CB(ux_menu_about_step, pb, ui_menu_about(), {&C_icon_certificate, "About"}); UX_STEP_CB(ux_display_public_step, pb, ui_menu_pubkey(), {&C_icon_certificate, "Display Address"}); diff --git a/src/ui/menu_nbgl.c b/src/ui/menu_nbgl.c index 756c6bb..6ca9d58 100644 --- a/src/ui/menu_nbgl.c +++ b/src/ui/menu_nbgl.c @@ -43,7 +43,7 @@ void ui_menu_main(void) { #define SETTINGS_BUTTON_ENABLED (true) nbgl_useCaseHome(APPNAME, - &C_app_phantasma_64px, + &C_app_boilerplate_64px, NULL, SETTINGS_BUTTON_ENABLED, ui_menu_settings, diff --git a/src/ui/nbgl_display_address.c b/src/ui/nbgl_display_address.c index 5f1bbfe..8ff48d5 100644 --- a/src/ui/nbgl_display_address.c +++ b/src/ui/nbgl_display_address.c @@ -77,8 +77,8 @@ int ui_display_address() { return io_send_sw(SW_DISPLAY_ADDRESS_FAIL); } - nbgl_useCaseReviewStart(&C_app_boilerplate_64px, - "Verify BOL address", + nbgl_useCaseReviewStart(&C_app_phantasma_64px, + "Verify Phantasma address", NULL, "Cancel", continue_review, diff --git a/src/ui/nbgl_display_transaction.c b/src/ui/nbgl_display_transaction.c index 2396c8c..aa9b776 100644 --- a/src/ui/nbgl_display_transaction.c +++ b/src/ui/nbgl_display_transaction.c @@ -85,8 +85,8 @@ static void review_continue(void) { pairList.pairs = pairs; // Info long press - infoLongPress.icon = &C_app_boilerplate_64px; - infoLongPress.text = "Sign transaction\nto send BOL"; + infoLongPress.icon = &C_app_phantasma_64px; + infoLongPress.text = "Sign transaction\nto send Phantasma"; infoLongPress.longPressText = "Hold to sign"; nbgl_useCaseStaticReview(&pairList, &infoLongPress, "Reject transaction", review_choice); @@ -111,7 +111,7 @@ int ui_display_transaction() { EXPONENT_SMALLEST_UNIT)) { return io_send_sw(SW_DISPLAY_AMOUNT_FAIL); } - snprintf(g_amount, sizeof(g_amount), "BOL %.*s", sizeof(amount), amount); + snprintf(g_amount, sizeof(g_amount), "Phantasma %.*s", sizeof(amount), amount); memset(g_address, 0, sizeof(g_address)); if (format_hex(G_context.tx_info.transaction.to, ADDRESS_LEN, g_address, sizeof(g_address)) == @@ -120,8 +120,8 @@ int ui_display_transaction() { } // Start review - nbgl_useCaseReviewStart(&C_app_boilerplate_64px, - "Review transaction\nto send BOL", + nbgl_useCaseReviewStart(&C_app_phantasma_64px, + "Review transaction\nto send Phantasma", NULL, "Reject transaction", review_continue, diff --git a/tests/requirements.txt b/tests/requirements.txt index 0913153..087f188 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -2,3 +2,4 @@ pytest ragger[speculos,ledgerwallet]>=1.11.4 ecdsa>=0.16.1,<0.17.0 pysha3>=1.0.0,<2.0.0 +phantasma-py>=1.0.9 diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00000.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00000.png new file mode 100644 index 0000000..8842989 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00000.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00001.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00001.png new file mode 100644 index 0000000..d7b159a Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00001.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00002.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00002.png new file mode 100644 index 0000000..25beaf6 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00002.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00003.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00003.png new file mode 100644 index 0000000..fa588ca Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00003.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00004.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00004.png new file mode 100644 index 0000000..3daa3f6 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00004.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00005.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00005.png new file mode 100644 index 0000000..78ee673 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00005.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00006.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00006.png new file mode 100644 index 0000000..b53323f Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00006.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00007.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00007.png new file mode 100644 index 0000000..be18bd0 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00007.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00008.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00008.png new file mode 100644 index 0000000..66c411c Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00008.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_long_tx/00009.png b/tests/snapshots/nanos/test_sign_tx_long_tx/00009.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_long_tx/00009.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00000.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00000.png new file mode 100644 index 0000000..8842989 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00000.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00001.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00001.png new file mode 100644 index 0000000..b4d091a Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00001.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00002.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00002.png new file mode 100644 index 0000000..25beaf6 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00002.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00003.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00003.png new file mode 100644 index 0000000..fa588ca Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00003.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00004.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00004.png new file mode 100644 index 0000000..82e08b1 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00004.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00005.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00005.png new file mode 100644 index 0000000..d6efd05 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00005.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00006.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00006.png new file mode 100644 index 0000000..93344b1 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00006.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00007.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00007.png new file mode 100644 index 0000000..fc37d01 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00007.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00008.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00008.png new file mode 100644 index 0000000..1c7d85f Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00008.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00009.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00009.png new file mode 100644 index 0000000..be18bd0 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00009.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00010.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00010.png new file mode 100644 index 0000000..66c411c Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00010.png differ diff --git a/tests/snapshots/nanos/test_sign_tx_short_tx/00011.png b/tests/snapshots/nanos/test_sign_tx_short_tx/00011.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanos/test_sign_tx_short_tx/00011.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00000.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00000.png new file mode 100644 index 0000000..8842989 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00000.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00001.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00001.png new file mode 100644 index 0000000..d7b159a Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00001.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00002.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00002.png new file mode 100644 index 0000000..25beaf6 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00002.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00003.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00003.png new file mode 100644 index 0000000..fa588ca Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00003.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00004.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00004.png new file mode 100644 index 0000000..3daa3f6 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00004.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00005.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00005.png new file mode 100644 index 0000000..78ee673 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00005.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00006.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00006.png new file mode 100644 index 0000000..b53323f Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00006.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00007.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00007.png new file mode 100644 index 0000000..be18bd0 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00007.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00008.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00008.png new file mode 100644 index 0000000..66c411c Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00008.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_long_tx/00009.png b/tests/snapshots/nanosp/test_sign_tx_long_tx/00009.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_long_tx/00009.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00000.png b/tests/snapshots/nanosp/test_sign_tx_refused/00000.png new file mode 100644 index 0000000..8842989 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00000.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00001.png b/tests/snapshots/nanosp/test_sign_tx_refused/00001.png new file mode 100644 index 0000000..d7b159a Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00001.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00002.png b/tests/snapshots/nanosp/test_sign_tx_refused/00002.png new file mode 100644 index 0000000..25beaf6 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00002.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00003.png b/tests/snapshots/nanosp/test_sign_tx_refused/00003.png new file mode 100644 index 0000000..fa588ca Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00003.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00004.png b/tests/snapshots/nanosp/test_sign_tx_refused/00004.png new file mode 100644 index 0000000..3daa3f6 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00004.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00005.png b/tests/snapshots/nanosp/test_sign_tx_refused/00005.png new file mode 100644 index 0000000..78ee673 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00005.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00006.png b/tests/snapshots/nanosp/test_sign_tx_refused/00006.png new file mode 100644 index 0000000..b53323f Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00006.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00007.png b/tests/snapshots/nanosp/test_sign_tx_refused/00007.png new file mode 100644 index 0000000..be18bd0 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00007.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00008.png b/tests/snapshots/nanosp/test_sign_tx_refused/00008.png new file mode 100644 index 0000000..66c411c Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00008.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00009.png b/tests/snapshots/nanosp/test_sign_tx_refused/00009.png new file mode 100644 index 0000000..9c7e704 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00009.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00010.png b/tests/snapshots/nanosp/test_sign_tx_refused/00010.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00010.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00011.png b/tests/snapshots/nanosp/test_sign_tx_refused/00011.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00011.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00012.png b/tests/snapshots/nanosp/test_sign_tx_refused/00012.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00012.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00013.png b/tests/snapshots/nanosp/test_sign_tx_refused/00013.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00013.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00014.png b/tests/snapshots/nanosp/test_sign_tx_refused/00014.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00014.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00015.png b/tests/snapshots/nanosp/test_sign_tx_refused/00015.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00015.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00016.png b/tests/snapshots/nanosp/test_sign_tx_refused/00016.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00016.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00017.png b/tests/snapshots/nanosp/test_sign_tx_refused/00017.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00017.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00018.png b/tests/snapshots/nanosp/test_sign_tx_refused/00018.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00018.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00019.png b/tests/snapshots/nanosp/test_sign_tx_refused/00019.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00019.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00020.png b/tests/snapshots/nanosp/test_sign_tx_refused/00020.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00020.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00021.png b/tests/snapshots/nanosp/test_sign_tx_refused/00021.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00021.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00022.png b/tests/snapshots/nanosp/test_sign_tx_refused/00022.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00022.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00023.png b/tests/snapshots/nanosp/test_sign_tx_refused/00023.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00023.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00024.png b/tests/snapshots/nanosp/test_sign_tx_refused/00024.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00024.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00025.png b/tests/snapshots/nanosp/test_sign_tx_refused/00025.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00025.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00026.png b/tests/snapshots/nanosp/test_sign_tx_refused/00026.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00026.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00027.png b/tests/snapshots/nanosp/test_sign_tx_refused/00027.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00027.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00028.png b/tests/snapshots/nanosp/test_sign_tx_refused/00028.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00028.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00029.png b/tests/snapshots/nanosp/test_sign_tx_refused/00029.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00029.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00030.png b/tests/snapshots/nanosp/test_sign_tx_refused/00030.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00030.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00031.png b/tests/snapshots/nanosp/test_sign_tx_refused/00031.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00031.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00032.png b/tests/snapshots/nanosp/test_sign_tx_refused/00032.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00032.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00033.png b/tests/snapshots/nanosp/test_sign_tx_refused/00033.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00033.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00034.png b/tests/snapshots/nanosp/test_sign_tx_refused/00034.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00034.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00035.png b/tests/snapshots/nanosp/test_sign_tx_refused/00035.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00035.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00036.png b/tests/snapshots/nanosp/test_sign_tx_refused/00036.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00036.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00037.png b/tests/snapshots/nanosp/test_sign_tx_refused/00037.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00037.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00038.png b/tests/snapshots/nanosp/test_sign_tx_refused/00038.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00038.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00039.png b/tests/snapshots/nanosp/test_sign_tx_refused/00039.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00039.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00040.png b/tests/snapshots/nanosp/test_sign_tx_refused/00040.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00040.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00041.png b/tests/snapshots/nanosp/test_sign_tx_refused/00041.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00041.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00042.png b/tests/snapshots/nanosp/test_sign_tx_refused/00042.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00042.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00043.png b/tests/snapshots/nanosp/test_sign_tx_refused/00043.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00043.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00044.png b/tests/snapshots/nanosp/test_sign_tx_refused/00044.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00044.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00045.png b/tests/snapshots/nanosp/test_sign_tx_refused/00045.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00045.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00046.png b/tests/snapshots/nanosp/test_sign_tx_refused/00046.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00046.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00047.png b/tests/snapshots/nanosp/test_sign_tx_refused/00047.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00047.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00048.png b/tests/snapshots/nanosp/test_sign_tx_refused/00048.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00048.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00049.png b/tests/snapshots/nanosp/test_sign_tx_refused/00049.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00049.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00050.png b/tests/snapshots/nanosp/test_sign_tx_refused/00050.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00050.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00051.png b/tests/snapshots/nanosp/test_sign_tx_refused/00051.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00051.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00052.png b/tests/snapshots/nanosp/test_sign_tx_refused/00052.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00052.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00053.png b/tests/snapshots/nanosp/test_sign_tx_refused/00053.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00053.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00054.png b/tests/snapshots/nanosp/test_sign_tx_refused/00054.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00054.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00055.png b/tests/snapshots/nanosp/test_sign_tx_refused/00055.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00055.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00056.png b/tests/snapshots/nanosp/test_sign_tx_refused/00056.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00056.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00057.png b/tests/snapshots/nanosp/test_sign_tx_refused/00057.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00057.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00058.png b/tests/snapshots/nanosp/test_sign_tx_refused/00058.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00058.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00059.png b/tests/snapshots/nanosp/test_sign_tx_refused/00059.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00059.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00060.png b/tests/snapshots/nanosp/test_sign_tx_refused/00060.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00060.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00061.png b/tests/snapshots/nanosp/test_sign_tx_refused/00061.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00061.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00062.png b/tests/snapshots/nanosp/test_sign_tx_refused/00062.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00062.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00063.png b/tests/snapshots/nanosp/test_sign_tx_refused/00063.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00063.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00064.png b/tests/snapshots/nanosp/test_sign_tx_refused/00064.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00064.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00065.png b/tests/snapshots/nanosp/test_sign_tx_refused/00065.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00065.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00066.png b/tests/snapshots/nanosp/test_sign_tx_refused/00066.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00066.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00067.png b/tests/snapshots/nanosp/test_sign_tx_refused/00067.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00067.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00068.png b/tests/snapshots/nanosp/test_sign_tx_refused/00068.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00068.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00069.png b/tests/snapshots/nanosp/test_sign_tx_refused/00069.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00069.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00070.png b/tests/snapshots/nanosp/test_sign_tx_refused/00070.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00070.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00071.png b/tests/snapshots/nanosp/test_sign_tx_refused/00071.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00071.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00072.png b/tests/snapshots/nanosp/test_sign_tx_refused/00072.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00072.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00073.png b/tests/snapshots/nanosp/test_sign_tx_refused/00073.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00073.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00074.png b/tests/snapshots/nanosp/test_sign_tx_refused/00074.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00074.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00075.png b/tests/snapshots/nanosp/test_sign_tx_refused/00075.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00075.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00076.png b/tests/snapshots/nanosp/test_sign_tx_refused/00076.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00076.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00077.png b/tests/snapshots/nanosp/test_sign_tx_refused/00077.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00077.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00078.png b/tests/snapshots/nanosp/test_sign_tx_refused/00078.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00078.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00079.png b/tests/snapshots/nanosp/test_sign_tx_refused/00079.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00079.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00080.png b/tests/snapshots/nanosp/test_sign_tx_refused/00080.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00080.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00081.png b/tests/snapshots/nanosp/test_sign_tx_refused/00081.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00081.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00082.png b/tests/snapshots/nanosp/test_sign_tx_refused/00082.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00082.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00083.png b/tests/snapshots/nanosp/test_sign_tx_refused/00083.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00083.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00084.png b/tests/snapshots/nanosp/test_sign_tx_refused/00084.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00084.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00085.png b/tests/snapshots/nanosp/test_sign_tx_refused/00085.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00085.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00086.png b/tests/snapshots/nanosp/test_sign_tx_refused/00086.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00086.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00087.png b/tests/snapshots/nanosp/test_sign_tx_refused/00087.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00087.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00088.png b/tests/snapshots/nanosp/test_sign_tx_refused/00088.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00088.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00089.png b/tests/snapshots/nanosp/test_sign_tx_refused/00089.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00089.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00090.png b/tests/snapshots/nanosp/test_sign_tx_refused/00090.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00090.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00091.png b/tests/snapshots/nanosp/test_sign_tx_refused/00091.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00091.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00092.png b/tests/snapshots/nanosp/test_sign_tx_refused/00092.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00092.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00093.png b/tests/snapshots/nanosp/test_sign_tx_refused/00093.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00093.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00094.png b/tests/snapshots/nanosp/test_sign_tx_refused/00094.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00094.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00095.png b/tests/snapshots/nanosp/test_sign_tx_refused/00095.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00095.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00096.png b/tests/snapshots/nanosp/test_sign_tx_refused/00096.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00096.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00097.png b/tests/snapshots/nanosp/test_sign_tx_refused/00097.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00097.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00098.png b/tests/snapshots/nanosp/test_sign_tx_refused/00098.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00098.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00099.png b/tests/snapshots/nanosp/test_sign_tx_refused/00099.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00099.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00100.png b/tests/snapshots/nanosp/test_sign_tx_refused/00100.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00100.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00101.png b/tests/snapshots/nanosp/test_sign_tx_refused/00101.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00101.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00102.png b/tests/snapshots/nanosp/test_sign_tx_refused/00102.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00102.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00103.png b/tests/snapshots/nanosp/test_sign_tx_refused/00103.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00103.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00104.png b/tests/snapshots/nanosp/test_sign_tx_refused/00104.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00104.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00105.png b/tests/snapshots/nanosp/test_sign_tx_refused/00105.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00105.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00106.png b/tests/snapshots/nanosp/test_sign_tx_refused/00106.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00106.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00107.png b/tests/snapshots/nanosp/test_sign_tx_refused/00107.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00107.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00108.png b/tests/snapshots/nanosp/test_sign_tx_refused/00108.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00108.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00109.png b/tests/snapshots/nanosp/test_sign_tx_refused/00109.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00109.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00110.png b/tests/snapshots/nanosp/test_sign_tx_refused/00110.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00110.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00111.png b/tests/snapshots/nanosp/test_sign_tx_refused/00111.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00111.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00112.png b/tests/snapshots/nanosp/test_sign_tx_refused/00112.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00112.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00113.png b/tests/snapshots/nanosp/test_sign_tx_refused/00113.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00113.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00114.png b/tests/snapshots/nanosp/test_sign_tx_refused/00114.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00114.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00115.png b/tests/snapshots/nanosp/test_sign_tx_refused/00115.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00115.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00116.png b/tests/snapshots/nanosp/test_sign_tx_refused/00116.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00116.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00117.png b/tests/snapshots/nanosp/test_sign_tx_refused/00117.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00117.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00118.png b/tests/snapshots/nanosp/test_sign_tx_refused/00118.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00118.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00119.png b/tests/snapshots/nanosp/test_sign_tx_refused/00119.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00119.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00120.png b/tests/snapshots/nanosp/test_sign_tx_refused/00120.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00120.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00121.png b/tests/snapshots/nanosp/test_sign_tx_refused/00121.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00121.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00122.png b/tests/snapshots/nanosp/test_sign_tx_refused/00122.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00122.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00123.png b/tests/snapshots/nanosp/test_sign_tx_refused/00123.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00123.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00124.png b/tests/snapshots/nanosp/test_sign_tx_refused/00124.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00124.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00125.png b/tests/snapshots/nanosp/test_sign_tx_refused/00125.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00125.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00126.png b/tests/snapshots/nanosp/test_sign_tx_refused/00126.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00126.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00127.png b/tests/snapshots/nanosp/test_sign_tx_refused/00127.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00127.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00128.png b/tests/snapshots/nanosp/test_sign_tx_refused/00128.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00128.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00129.png b/tests/snapshots/nanosp/test_sign_tx_refused/00129.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00129.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00130.png b/tests/snapshots/nanosp/test_sign_tx_refused/00130.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00130.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00131.png b/tests/snapshots/nanosp/test_sign_tx_refused/00131.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00131.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00132.png b/tests/snapshots/nanosp/test_sign_tx_refused/00132.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00132.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00133.png b/tests/snapshots/nanosp/test_sign_tx_refused/00133.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00133.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00134.png b/tests/snapshots/nanosp/test_sign_tx_refused/00134.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00134.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00135.png b/tests/snapshots/nanosp/test_sign_tx_refused/00135.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00135.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00136.png b/tests/snapshots/nanosp/test_sign_tx_refused/00136.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00136.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00137.png b/tests/snapshots/nanosp/test_sign_tx_refused/00137.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00137.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00138.png b/tests/snapshots/nanosp/test_sign_tx_refused/00138.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00138.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00139.png b/tests/snapshots/nanosp/test_sign_tx_refused/00139.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00139.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00140.png b/tests/snapshots/nanosp/test_sign_tx_refused/00140.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00140.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00141.png b/tests/snapshots/nanosp/test_sign_tx_refused/00141.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00141.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00142.png b/tests/snapshots/nanosp/test_sign_tx_refused/00142.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00142.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00143.png b/tests/snapshots/nanosp/test_sign_tx_refused/00143.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00143.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00144.png b/tests/snapshots/nanosp/test_sign_tx_refused/00144.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00144.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00145.png b/tests/snapshots/nanosp/test_sign_tx_refused/00145.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00145.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00146.png b/tests/snapshots/nanosp/test_sign_tx_refused/00146.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00146.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00147.png b/tests/snapshots/nanosp/test_sign_tx_refused/00147.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00147.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00148.png b/tests/snapshots/nanosp/test_sign_tx_refused/00148.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00148.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00149.png b/tests/snapshots/nanosp/test_sign_tx_refused/00149.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00149.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00150.png b/tests/snapshots/nanosp/test_sign_tx_refused/00150.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00150.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00151.png b/tests/snapshots/nanosp/test_sign_tx_refused/00151.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00151.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00152.png b/tests/snapshots/nanosp/test_sign_tx_refused/00152.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00152.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00153.png b/tests/snapshots/nanosp/test_sign_tx_refused/00153.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00153.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00154.png b/tests/snapshots/nanosp/test_sign_tx_refused/00154.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00154.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00155.png b/tests/snapshots/nanosp/test_sign_tx_refused/00155.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00155.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00156.png b/tests/snapshots/nanosp/test_sign_tx_refused/00156.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00156.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00157.png b/tests/snapshots/nanosp/test_sign_tx_refused/00157.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00157.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00158.png b/tests/snapshots/nanosp/test_sign_tx_refused/00158.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00158.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00159.png b/tests/snapshots/nanosp/test_sign_tx_refused/00159.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00159.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00160.png b/tests/snapshots/nanosp/test_sign_tx_refused/00160.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00160.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00161.png b/tests/snapshots/nanosp/test_sign_tx_refused/00161.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00161.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00162.png b/tests/snapshots/nanosp/test_sign_tx_refused/00162.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00162.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00163.png b/tests/snapshots/nanosp/test_sign_tx_refused/00163.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00163.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00164.png b/tests/snapshots/nanosp/test_sign_tx_refused/00164.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00164.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00165.png b/tests/snapshots/nanosp/test_sign_tx_refused/00165.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00165.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00166.png b/tests/snapshots/nanosp/test_sign_tx_refused/00166.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00166.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00167.png b/tests/snapshots/nanosp/test_sign_tx_refused/00167.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00167.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00168.png b/tests/snapshots/nanosp/test_sign_tx_refused/00168.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00168.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00169.png b/tests/snapshots/nanosp/test_sign_tx_refused/00169.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00169.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00170.png b/tests/snapshots/nanosp/test_sign_tx_refused/00170.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00170.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00171.png b/tests/snapshots/nanosp/test_sign_tx_refused/00171.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00171.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00172.png b/tests/snapshots/nanosp/test_sign_tx_refused/00172.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00172.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00173.png b/tests/snapshots/nanosp/test_sign_tx_refused/00173.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00173.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00174.png b/tests/snapshots/nanosp/test_sign_tx_refused/00174.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00174.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00175.png b/tests/snapshots/nanosp/test_sign_tx_refused/00175.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00175.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00176.png b/tests/snapshots/nanosp/test_sign_tx_refused/00176.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00176.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00177.png b/tests/snapshots/nanosp/test_sign_tx_refused/00177.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00177.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00178.png b/tests/snapshots/nanosp/test_sign_tx_refused/00178.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00178.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00179.png b/tests/snapshots/nanosp/test_sign_tx_refused/00179.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00179.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00180.png b/tests/snapshots/nanosp/test_sign_tx_refused/00180.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00180.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00181.png b/tests/snapshots/nanosp/test_sign_tx_refused/00181.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00181.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00182.png b/tests/snapshots/nanosp/test_sign_tx_refused/00182.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00182.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00183.png b/tests/snapshots/nanosp/test_sign_tx_refused/00183.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00183.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00184.png b/tests/snapshots/nanosp/test_sign_tx_refused/00184.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00184.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00185.png b/tests/snapshots/nanosp/test_sign_tx_refused/00185.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00185.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00186.png b/tests/snapshots/nanosp/test_sign_tx_refused/00186.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00186.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00187.png b/tests/snapshots/nanosp/test_sign_tx_refused/00187.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00187.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00188.png b/tests/snapshots/nanosp/test_sign_tx_refused/00188.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00188.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00189.png b/tests/snapshots/nanosp/test_sign_tx_refused/00189.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00189.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00190.png b/tests/snapshots/nanosp/test_sign_tx_refused/00190.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00190.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00191.png b/tests/snapshots/nanosp/test_sign_tx_refused/00191.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00191.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00192.png b/tests/snapshots/nanosp/test_sign_tx_refused/00192.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00192.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00193.png b/tests/snapshots/nanosp/test_sign_tx_refused/00193.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00193.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00194.png b/tests/snapshots/nanosp/test_sign_tx_refused/00194.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00194.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00195.png b/tests/snapshots/nanosp/test_sign_tx_refused/00195.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00195.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00196.png b/tests/snapshots/nanosp/test_sign_tx_refused/00196.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00196.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00197.png b/tests/snapshots/nanosp/test_sign_tx_refused/00197.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00197.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00198.png b/tests/snapshots/nanosp/test_sign_tx_refused/00198.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00198.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00199.png b/tests/snapshots/nanosp/test_sign_tx_refused/00199.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00199.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00200.png b/tests/snapshots/nanosp/test_sign_tx_refused/00200.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00200.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00201.png b/tests/snapshots/nanosp/test_sign_tx_refused/00201.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00201.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00202.png b/tests/snapshots/nanosp/test_sign_tx_refused/00202.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00202.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00203.png b/tests/snapshots/nanosp/test_sign_tx_refused/00203.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00203.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00204.png b/tests/snapshots/nanosp/test_sign_tx_refused/00204.png new file mode 100644 index 0000000..e227980 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00204.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00205.png b/tests/snapshots/nanosp/test_sign_tx_refused/00205.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00205.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00206.png b/tests/snapshots/nanosp/test_sign_tx_refused/00206.png new file mode 100644 index 0000000..5330756 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00206.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00207.png b/tests/snapshots/nanosp/test_sign_tx_refused/00207.png new file mode 100644 index 0000000..3476b97 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00207.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_refused/00208.png b/tests/snapshots/nanosp/test_sign_tx_refused/00208.png new file mode 100644 index 0000000..a66de61 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_refused/00208.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00000.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00000.png new file mode 100644 index 0000000..8842989 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00000.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00001.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00001.png new file mode 100644 index 0000000..b4d091a Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00001.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00002.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00002.png new file mode 100644 index 0000000..25beaf6 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00002.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00003.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00003.png new file mode 100644 index 0000000..fa588ca Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00003.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00004.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00004.png new file mode 100644 index 0000000..82e08b1 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00004.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00005.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00005.png new file mode 100644 index 0000000..d6efd05 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00005.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00006.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00006.png new file mode 100644 index 0000000..93344b1 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00006.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00007.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00007.png new file mode 100644 index 0000000..fc37d01 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00007.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00008.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00008.png new file mode 100644 index 0000000..1c7d85f Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00008.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00009.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00009.png new file mode 100644 index 0000000..be18bd0 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00009.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00010.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00010.png new file mode 100644 index 0000000..66c411c Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00010.png differ diff --git a/tests/snapshots/nanosp/test_sign_tx_short_tx/00011.png b/tests/snapshots/nanosp/test_sign_tx_short_tx/00011.png new file mode 100644 index 0000000..30d37e8 Binary files /dev/null and b/tests/snapshots/nanosp/test_sign_tx_short_tx/00011.png differ diff --git a/tests/test_pubkey_cmd.py b/tests/test_pubkey_cmd.py index 5d2fc5c..9014d1c 100644 --- a/tests/test_pubkey_cmd.py +++ b/tests/test_pubkey_cmd.py @@ -7,21 +7,22 @@ from ragger.error import ExceptionRAPDU from ragger.navigator import NavInsID, NavIns from utils import ROOT_SCREENSHOT_PATH +from phantasma_py.Types import Address +from phantasma_py.Types.Extensions import Base16 +from phantasma_py.Utils import get_address_from_public_key -TAG = "MY_TAG" - +TAG = "MY_TAG_OWNTHING" # In this test we check that the GET_PUBLIC_KEY works in non-confirmation mode def test_get_public_key_no_confirm(backend): for path in ["m/44'/60'/0'/0/0"]: client = BoilerplateCommandSender(backend) response = client.get_public_key(path=path).data - '''_, public_key, _, chain_code = unpack_get_public_key_response(response) - - ref_public_key, ref_chain_code = calculate_public_key_and_chaincode(CurveChoice.Secp256k1, path=path) - assert public_key.hex() == ref_public_key - assert chain_code.hex() == ref_chain_code''' + response_hex_upper = response.hex().upper() + response_hex_upper_based_decoded = response_hex_upper[:64] + addr : Address = get_address_from_public_key(response_hex_upper_based_decoded) + assert addr.Text == "P2KHQ419gj1N5cYvPrpWpp6E5j4tcEixMfzUPWTi4F2qzRa" # In this test we check that the GET_PUBLIC_KEY works in confirmation mode def test_get_public_key_confirm_accepted(firmware, backend, navigator, test_name): @@ -46,14 +47,11 @@ def test_get_public_key_confirm_accepted(firmware, backend, navigator, test_name test_name, instructions) response = client.get_async_response().data - print(TAG, response) - _, public_key, _, chain_code = unpack_get_public_key_response(response) - - print(TAG, public_key) + response_hex_upper = response.hex().upper() + response_hex_upper_based_decoded = response_hex_upper[:64] - ref_public_key, ref_chain_code = calculate_public_key_and_chaincode(CurveChoice.Secp256k1, path=path) - assert public_key.hex() == ref_public_key - assert chain_code.hex() == ref_chain_code + addr : Address = get_address_from_public_key(response_hex_upper_based_decoded) + assert addr.Text == "P2KHQ419gj1N5cYvPrpWpp6E5j4tcEixMfzUPWTi4F2qzRa" # In this test we check that the GET_PUBLIC_KEY in confirmation mode replies an error if the user refuses diff --git a/tests/test_sign_cmd.py b/tests/test_sign_cmd.py index a43adad..a4dd406 100644 --- a/tests/test_sign_cmd.py +++ b/tests/test_sign_cmd.py @@ -1,14 +1,17 @@ import pytest -from application_client.boilerplate_transaction import Transaction from application_client.boilerplate_command_sender import BoilerplateCommandSender, Errors from application_client.boilerplate_response_unpacker import unpack_get_public_key_response, unpack_sign_tx_response from ragger.error import ExceptionRAPDU from ragger.navigator import NavInsID from utils import ROOT_SCREENSHOT_PATH, check_signature_validity +from phantasma_py.Tx import Transaction +from phantasma_py.Types import PhantasmaKeys, Address +from phantasma_py.Types.Extensions import Base16 +from phantasma_py.VM import ScriptBuilder # In this tests we check the behavior of the device when asked to sign a transaction - +TAG = "MY_SIGN_TX" # In this test se send to the device a transaction to sign and validate it on screen # The transaction is short and will be sent in one chunk @@ -20,40 +23,52 @@ def test_sign_tx_short_tx(firmware, backend, navigator, test_name): path: str = "m/44'/60'/0'/0/0" # First we need to get the public key of the device in order to build the transaction - rapdu = client.get_public_key(path=path) - _, public_key, _, _ = unpack_get_public_key_response(rapdu.data) + #rapdu = client.get_public_key(path=path) + + keys = PhantasmaKeys.from_wif("L5UEVHBjujaR1721aZM5Zm5ayjDyamMZS9W35RE9Y9giRkdf3dVx") + amount = 10000000 + testSB = ScriptBuilder() + testSB = testSB.AllowGas(keys.Address.Text, Address.NullText, 10000, 21000) + testSB = testSB.CallInterop("Runtime.TransferTokens", [keys.Address.Text, keys.Address.Text, "SOUL", str(amount) ]) + testSB = testSB.SpendGas(keys.Address.Text) + script = testSB.EndScript() # Create the transaction that will be sent to the device for signing transaction = Transaction( - nonce=1, - to="0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", - value=666, - memo="For u EthDev" - ).serialize() + "mainnet", # NEXUS (mainnet or testnet) + "main", # CHAIN + script, # SCRIPT + None, + # EXPIRATION (Leave it empty and the module will create a valid one for + # you) + "PHANTASMAROCKS" # PAYLOAD + ) + txSerialized = Base16.decode_uint8_array(transaction.toString(False)) + + print(TAG, Base16.encode_uint8_array(txSerialized)) # Send the sign device instruction. # As it requires on-screen validation, the function is asynchronous. # It will yield the result when the navigation is done - with client.sign_tx(path=path, transaction=transaction): + with client.sign_tx(path=path, transaction=txSerialized): # Validate the on-screen request by performing the navigation appropriate for this device if firmware.device.startswith("nano"): navigator.navigate_until_text_and_compare(NavInsID.RIGHT_CLICK, - [NavInsID.BOTH_CLICK], - "Approve", - ROOT_SCREENSHOT_PATH, - test_name) + [NavInsID.BOTH_CLICK], + "Approve", + ROOT_SCREENSHOT_PATH, + test_name) else: navigator.navigate_until_text_and_compare(NavInsID.USE_CASE_REVIEW_TAP, - [NavInsID.USE_CASE_REVIEW_CONFIRM, - NavInsID.USE_CASE_STATUS_DISMISS], - "Hold to sign", - ROOT_SCREENSHOT_PATH, - test_name) - + [NavInsID.USE_CASE_REVIEW_CONFIRM, + NavInsID.USE_CASE_STATUS_DISMISS], + "Hold to sign", + ROOT_SCREENSHOT_PATH, + test_name) # The device as yielded the result, parse it and ensure that the signature is correct - response = client.get_async_response().data - _, der_sig, _ = unpack_sign_tx_response(response) - assert check_signature_validity(public_key, der_sig, transaction) + #response = client.get_async_response().data + #'''_, der_sig, _ = unpack_sign_tx_response(response) + #assert check_signature_validity(public_key, der_sig, transaction)''' # In this test se send to the device a transaction to sign and validate it on screen @@ -62,22 +77,32 @@ def test_sign_tx_short_tx(firmware, backend, navigator, test_name): def test_sign_tx_long_tx(firmware, backend, navigator, test_name): # Use the app interface instead of raw interface client = BoilerplateCommandSender(backend) - path: str = "m/44'/1'/0'/0/0" + path: str = "m/44'/60'/0'/0/0" - rapdu = client.get_public_key(path=path) - _, public_key, _, _ = unpack_get_public_key_response(rapdu.data) + keys = PhantasmaKeys.from_wif("L5UEVHBjujaR1721aZM5Zm5ayjDyamMZS9W35RE9Y9giRkdf3dVx") + amount = 10000000 + testSB = ScriptBuilder() + testSB = testSB.AllowGas(keys.Address.Text, Address.NullText, 10000, 21000) + testSB = testSB.CallInterop("Runtime.TransferTokens", [keys.Address.Text, keys.Address.Text, "SOUL", str(amount), str(amount), str(amount), str(amount) , str(amount), str(amount) ]) + testSB = testSB.SpendGas(keys.Address.Text) + script = testSB.EndScript() + # Create the transaction that will be sent to the device for signing transaction = Transaction( - nonce=1, - to="0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", - value=666, - memo=("This is a very long memo. " - "It will force the app client to send the serialized transaction to be sent in chunk. " - "As the maximum chunk size is 255 bytes we will make this memo greater than 255 characters. " - "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam.") - ).serialize() - - with client.sign_tx(path=path, transaction=transaction): + "mainnet", # NEXUS (mainnet or testnet) + "main", # CHAIN + script, # SCRIPT + None, + # EXPIRATION (Leave it empty and the module will create a valid one for + # you) + "PHANTASMAROCKS" # PAYLOAD + ) + txSerialized = Base16.decode_uint8_array(transaction.toString(False)) + + print(TAG, Base16.encode_uint8_array(txSerialized)) + + + with client.sign_tx(path=path, transaction=txSerialized): if firmware.device.startswith("nano"): navigator.navigate_until_text_and_compare(NavInsID.RIGHT_CLICK, [NavInsID.BOTH_CLICK], @@ -101,21 +126,31 @@ def test_sign_tx_long_tx(firmware, backend, navigator, test_name): def test_sign_tx_refused(firmware, backend, navigator, test_name): # Use the app interface instead of raw interface client = BoilerplateCommandSender(backend) - path: str = "m/44'/1'/0'/0/0" + path: str = "m/44'/60'/0'/0/0" - rapdu = client.get_public_key(path=path) - _, pub_key, _, _ = unpack_get_public_key_response(rapdu.data) + keys = PhantasmaKeys.from_wif("L5UEVHBjujaR1721aZM5Zm5ayjDyamMZS9W35RE9Y9giRkdf3dVx") + amount = 10000000 + testSB = ScriptBuilder() + testSB = testSB.AllowGas(keys.Address.Text, Address.NullText, 10000, 21000) + testSB = testSB.CallInterop("Runtime.TransferTokens", [keys.Address.Text, keys.Address.Text, "SOUL", str(amount), str(amount), str(amount), str(amount) , str(amount), str(amount) ]) + testSB = testSB.SpendGas(keys.Address.Text) + script = testSB.EndScript() + # Create the transaction that will be sent to the device for signing transaction = Transaction( - nonce=1, - to="0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", - value=666, - memo="This transaction will be refused by the user" - ).serialize() + "mainnet", # NEXUS (mainnet or testnet) + "main", # CHAIN + script, # SCRIPT + None, + # EXPIRATION (Leave it empty and the module will create a valid one for + # you) + "PHANTASMAROCKS" # PAYLOAD + ) + txSerialized = Base16.decode_uint8_array(transaction.toString(False)) if firmware.device.startswith("nano"): with pytest.raises(ExceptionRAPDU) as e: - with client.sign_tx(path=path, transaction=transaction): + with client.sign_tx(path=path, transaction=txSerialized): navigator.navigate_until_text_and_compare(NavInsID.RIGHT_CLICK, [NavInsID.BOTH_CLICK], "Reject", @@ -126,7 +161,7 @@ def test_sign_tx_refused(firmware, backend, navigator, test_name): assert e.value.status == Errors.SW_DENY assert len(e.value.data) == 0 else: - for i in range(3): + for i in range(6): instructions = [NavInsID.USE_CASE_REVIEW_TAP] * i instructions += [NavInsID.USE_CASE_REVIEW_REJECT, NavInsID.USE_CASE_CHOICE_CONFIRM, @@ -138,4 +173,4 @@ def test_sign_tx_refused(firmware, backend, navigator, test_name): instructions) # Assert that we have received a refusal assert e.value.status == Errors.SW_DENY - assert len(e.value.data) == 0 + assert len(e.value.data) == 0 \ No newline at end of file