Skip to content

Commit

Permalink
Update MASP signing test to account for splitting.
Browse files Browse the repository at this point in the history
  • Loading branch information
murisi committed Jun 17, 2024
1 parent 785c89a commit c3fa85d
Show file tree
Hide file tree
Showing 110 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions app/src/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -952,26 +952,26 @@ zxerr_t crypto_computeRandomness(masp_type_e type, uint8_t *out, uint16_t outLen
uint8_t tmp_rnd[RANDOM_LEN] = {0};

#ifdef APP_TESTING
uint8_t out_tmp_rnd2[RANDOM_LEN] = {0x57, 0x04, 0x17, 0x50, 0x42, 0xb2, 0x4c, 0x3d, 0x51,
0xe8, 0x0e, 0xeb, 0x4c, 0xfb, 0xff, 0xe2, 0xfc, 0x05,
0x61, 0x91, 0x61, 0x2b, 0x50, 0xca, 0xa9, 0x78, 0x24,
0xa2, 0x76, 0xd9, 0xe4, 0x0b};
uint8_t out_tmp_rnd2[RANDOM_LEN] = {0x71, 0x11, 0x60, 0x47, 0xe5, 0xe8, 0xb5, 0x0a, 0x5c,
0x74, 0x69, 0x8a, 0xc2, 0x9b, 0x73, 0x5c, 0xc9, 0xe2,
0xfa, 0xf7, 0x94, 0x37, 0xb8, 0x15, 0xa2, 0xb7, 0x0b,
0x07, 0xec, 0x24, 0xf9, 0x08};

uint8_t out_tmp_rnd[RANDOM_LEN] = {0x04, 0x56, 0xf7, 0x74, 0xac, 0x0f, 0x67, 0x12, 0x68,
0xf0, 0x3b, 0x82, 0xbf, 0x9a, 0x77, 0x4d, 0x39, 0x26,
0xb6, 0xc4, 0x43, 0x1e, 0x09, 0x9f, 0xf5, 0x5f, 0xee,
0x62, 0xa2, 0x9a, 0xf4, 0x09};
uint8_t out_tmp_rnd[RANDOM_LEN] = {0x5d, 0x62, 0xca, 0xb2, 0x10, 0x12, 0xf9, 0x69, 0x5b,
0x27, 0xa7, 0x2d, 0xc2, 0xbc, 0xe1, 0x01, 0x26, 0x55,
0xb8, 0x55, 0x43, 0xfb, 0x69, 0x58, 0x22, 0x89, 0xf1,
0x9f, 0x0e, 0x83, 0x86, 0x04};


uint8_t spend_tmp_rnd[RANDOM_LEN] = {0x59, 0x63, 0x82, 0x91, 0xee, 0xab, 0xca, 0x62, 0x53,
0x50, 0xd7, 0xb9, 0x64, 0x1d, 0xf8, 0xf5, 0x7a, 0x81,
0x6e, 0xa9, 0xa5, 0x6c, 0xdb, 0x21, 0x7b, 0x6c, 0xc3,
0x32, 0xb0, 0x40, 0xf1, 0x0a};
uint8_t spend_tmp_rnd[RANDOM_LEN] = {0x78, 0xa4, 0xad, 0x60, 0x8f, 0xb6, 0xef, 0x03, 0xdf,
0xaf, 0x46, 0x0c, 0x67, 0x19, 0x62, 0xe8, 0x18, 0x50,
0xa4, 0xec, 0x39, 0xd6, 0x10, 0xeb, 0x3f, 0x31, 0x52,
0x2c, 0x2f, 0xe8, 0x00, 0x0d};

uint8_t spend_tmp_rnd2[RANDOM_LEN] = {0x0a, 0x10, 0xc1, 0xcd, 0xbd, 0x97, 0xb0, 0xbb, 0x38,
0xd3, 0x52, 0x58, 0x5a, 0xf1, 0x0d, 0x1f, 0xdf, 0xfa,
0xcf, 0xc3, 0x54, 0xb9, 0xd0, 0x29, 0x1c, 0x7c, 0x10,
0xaa, 0x4d, 0x23, 0x93, 0x03};
uint8_t spend_tmp_rnd2[RANDOM_LEN] = {0x5e, 0x0e, 0xdd, 0x60, 0x7d, 0x43, 0x4e, 0x34, 0x76,
0x6b, 0xdb, 0x07, 0x13, 0xe2, 0xef, 0xdd, 0x27, 0x5a,
0x0d, 0x50, 0x73, 0x47, 0x9f, 0xda, 0x02, 0x0c, 0xfc,
0x6f, 0x03, 0x97, 0x53, 0x07};
#else
uint8_t tmp_rnd2[RANDOM_LEN] = {0};
#endif
Expand Down
Binary file modified tests_zemu/snapshots/sp-sign_masp/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00009.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00012.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00013.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00014.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00015.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00016.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00017.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00018.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00019.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00020.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00022.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00023.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00025.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-sign_masp/00026.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00027.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00028.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00029.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00030.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00031.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00032.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00033.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00034.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00035.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00036.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00037.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00038.png
Binary file modified tests_zemu/snapshots/sp-sign_masp/00039.png
Binary file added tests_zemu/snapshots/sp-sign_masp/00040.png
Binary file added tests_zemu/snapshots/sp-sign_masp/00041.png
Binary file added tests_zemu/snapshots/sp-sign_masp/00042.png
Binary file added tests_zemu/snapshots/sp-sign_masp/00043.png
Binary file added tests_zemu/snapshots/sp-sign_masp/00044.png
Binary file added tests_zemu/snapshots/sp-sign_masp/00045.png
Binary file added tests_zemu/snapshots/sp-sign_masp/00046.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00001.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00002.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00003.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00004.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00005.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00006.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00007.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00008.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00009.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00010.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00011.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00012.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00013.png
Binary file modified tests_zemu/snapshots/st-sign_masp/00014.png
Binary file added tests_zemu/snapshots/st-sign_masp/00015.png
Binary file added tests_zemu/snapshots/st-sign_masp/00016.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00001.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00002.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00003.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00004.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00005.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00006.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00007.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00008.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00009.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00010.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00011.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00012.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00013.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00014.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00015.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00016.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00017.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00018.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00019.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00020.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00021.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00022.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00023.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00024.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00025.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00026.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00027.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00028.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00029.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00030.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00031.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00032.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00033.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00034.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00035.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00036.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00037.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00038.png
Binary file modified tests_zemu/snapshots/x-sign_masp/00039.png
Binary file added tests_zemu/snapshots/x-sign_masp/00040.png
Binary file added tests_zemu/snapshots/x-sign_masp/00041.png
Binary file added tests_zemu/snapshots/x-sign_masp/00042.png
Binary file added tests_zemu/snapshots/x-sign_masp/00043.png
Binary file added tests_zemu/snapshots/x-sign_masp/00044.png
Binary file added tests_zemu/snapshots/x-sign_masp/00045.png
Binary file added tests_zemu/snapshots/x-sign_masp/00046.png
2 changes: 1 addition & 1 deletion tests_zemu/tests/common.ts

Large diffs are not rendered by default.

0 comments on commit c3fa85d

Please sign in to comment.