From 4ac86f99d825efaa3c32a9e0f1a5126eccf79a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Mon, 5 Feb 2024 14:19:42 +0100 Subject: [PATCH 1/2] Tests: add test check HWM after signing when no chain has been setup --- .../sign_1_0/app_context/chain_id.png | Bin 0 -> 285 bytes .../sign_1_0/app_context/high_watermark.png | Bin 0 -> 345 bytes .../app_context/public_key_hash_1.png | Bin 0 -> 559 bytes .../app_context/public_key_hash_2.png | Bin 0 -> 569 bytes .../sign_2_0/app_context/chain_id.png | Bin 0 -> 285 bytes .../sign_2_0/app_context/high_watermark.png | Bin 0 -> 354 bytes .../app_context/public_key_hash_1.png | Bin 0 -> 559 bytes .../app_context/public_key_hash_2.png | Bin 0 -> 569 bytes .../sign_1_0/app_context/chain_id.png | Bin 0 -> 320 bytes .../sign_1_0/app_context/high_watermark.png | Bin 0 -> 400 bytes .../sign_1_0/app_context/public_key_hash.png | Bin 0 -> 792 bytes .../sign_2_0/app_context/chain_id.png | Bin 0 -> 320 bytes .../sign_2_0/app_context/high_watermark.png | Bin 0 -> 413 bytes .../sign_2_0/app_context/public_key_hash.png | Bin 0 -> 792 bytes .../sign_1_0/app_context/chain_id.png | Bin 0 -> 320 bytes .../sign_1_0/app_context/high_watermark.png | Bin 0 -> 400 bytes .../sign_1_0/app_context/public_key_hash.png | Bin 0 -> 792 bytes .../sign_2_0/app_context/chain_id.png | Bin 0 -> 320 bytes .../sign_2_0/app_context/high_watermark.png | Bin 0 -> 413 bytes .../sign_2_0/app_context/public_key_hash.png | Bin 0 -> 792 bytes .../sign_1_0/app_context/app_context.png | Bin 0 -> 14491 bytes .../sign_2_0/app_context/app_context.png | Bin 0 -> 14624 bytes test/python/test_instructions.py | 65 +++++++++++++++++- 23 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/chain_id.png create mode 100644 test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/high_watermark.png create mode 100644 test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/public_key_hash_1.png create mode 100644 test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/public_key_hash_2.png create mode 100644 test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_2_0/app_context/chain_id.png create mode 100644 test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_2_0/app_context/high_watermark.png create mode 100644 test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_2_0/app_context/public_key_hash_1.png create mode 100644 test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_2_0/app_context/public_key_hash_2.png create mode 100644 test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_1_0/app_context/chain_id.png create mode 100644 test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_1_0/app_context/high_watermark.png create mode 100644 test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_1_0/app_context/public_key_hash.png create mode 100644 test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_2_0/app_context/chain_id.png create mode 100644 test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_2_0/app_context/high_watermark.png create mode 100644 test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_2_0/app_context/public_key_hash.png create mode 100644 test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_1_0/app_context/chain_id.png create mode 100644 test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_1_0/app_context/high_watermark.png create mode 100644 test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_1_0/app_context/public_key_hash.png create mode 100644 test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_2_0/app_context/chain_id.png create mode 100644 test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_2_0/app_context/high_watermark.png create mode 100644 test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_2_0/app_context/public_key_hash.png create mode 100644 test/python/snapshots/stax/test_sign_when_no_chain_setup/sign_1_0/app_context/app_context.png create mode 100644 test/python/snapshots/stax/test_sign_when_no_chain_setup/sign_2_0/app_context/app_context.png diff --git a/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/chain_id.png b/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/chain_id.png new file mode 100644 index 0000000000000000000000000000000000000000..a13210c52a6eb3a2f15d18a824724d6551fb962e GIT binary patch literal 285 zcmV+&0pk9NP)PW&?q5fLd4OA%{Crx26D00000NkvXXu0mjfpvrS# literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/high_watermark.png b/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/high_watermark.png new file mode 100644 index 0000000000000000000000000000000000000000..0cccb5b4aca404479c52128b4de8509cf54e81ad GIT binary patch literal 345 zcmV-f0jBFBFgn0000OW#8l?t5=%T9_<@124d~~ zV{1-eSvy;aL*2Kk!B}B>`MP_^A!7kzl~;8tt!1^+w`jR6ifxbo)H|t6g&0zzC_lNr z`GchSTgLQQJT?@qHGL_mQfX_q+Dumfn;@<TY@DXU9;J3hxK6|hAfrW4%i2li5nqu9DktByTf*CD4BRg+5Fk?>`wiz7 zc0zqELIe<$n}G(Agk>Q>f%~u($}Teh1~Ym0+9ZUPwZNP)>XbRG!X z0Sze|9qs3pEGd z#JP8&v*W*!Z$@<}Yu21djtt#Iddtii=yLPA+th7KH^;}M_dTyb+QG#Q2<)6$1LPK2_Im(> z4JPzcz^K)yWiB61RU{j_#xF5>X(DU?{Zbl+SOMnB_0GeoIm9O8g`thJ?3i7^3NZ0X xm=`p`;m|lbzi;A@4>E-`TqAi|C=?18#RJ!@m~(NYZ)5-f002ovPDHLkV1fe>`k?>- literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/public_key_hash_2.png b/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_1_0/app_context/public_key_hash_2.png new file mode 100644 index 0000000000000000000000000000000000000000..a30fbd958349d4762e483737696ec94262127b42 GIT binary patch literal 569 zcmV-90>=G`P)sI5;qIy?%dHPC#^tSD6_D zcqN!KcR`Iqq{!7aFOYGhp;aOlZ?=1O0#piEB@Fnga+o$fzV-hRiDHQ`Y?8THmCTm4 z36WnK08E;R)&y8kvr@pdlqfMkc@9)P>O&`^97Lck%gG$8kWY*Nmw;tYhib8_A{DU% z8k!?(o&F}ZTmn{}N|}QpyQ`I_AqQB*ukh*Hehp#{@M=$GAUBd29sSVt4!}JRFeP`} zVoT?MVP;@8NL8K1i3A;iRNIo0F|F%lEH-jfTdYx@?te+E&v`!o5P$2 zbtq^F7DHXU9XVpOHU-94#etnUg=jIE7}7Uk(!(p8i~~0H{xYM(xn8&5-vgb1ynzMh zDAMB%mPeZuuRQ5*kOf}LyfTzKy2sJW2BiZxmEvix;JS)RPVjm#(4By{+?=JK0PPW&?q5fLd4OA%{Crx26D00000NkvXXu0mjfpvrS# literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_2_0/app_context/high_watermark.png b/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_2_0/app_context/high_watermark.png new file mode 100644 index 0000000000000000000000000000000000000000..b117e76a7d4f6a1ccfb2a4c9f48a01ace58205a6 GIT binary patch literal 354 zcmV-o0iFJdP)&;r~Q1>lq&{vqd{JXahTqYbOGHZ3>)`D8+UA4@UYTfwBd?zzg!G|+Y@GImO ze~>nRxliL{Tv4@FY%3EgGj;7&o9PM=6QnCe`?ouA#j@Sp?;nCVJVdmkMmAB}$+DdW z{WoFGvR3q4jMH@3t)$Kf^?0lRGFk+wsC~-Z(w66es#Dvkw}h`z7<^q< z#0mAYC?0@Q9tIkC;ueJfIqt(IZUPwZNP)>XbRG!X z0Sze|9qs3pEGd z#JP8&v*W*!Z$@<}Yu21djtt#Iddtii=yLPA+th7KH^;}M_dTyb+QG#Q2<)6$1LPK2_Im(> z4JPzcz^K)yWiB61RU{j_#xF5>X(DU?{Zbl+SOMnB_0GeoIm9O8g`thJ?3i7^3NZ0X xm=`p`;m|lbzi;A@4>E-`TqAi|C=?18#RJ!@m~(NYZ)5-f002ovPDHLkV1fe>`k?>- literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_2_0/app_context/public_key_hash_2.png b/test/python/snapshots/nanos/test_sign_when_no_chain_setup/sign_2_0/app_context/public_key_hash_2.png new file mode 100644 index 0000000000000000000000000000000000000000..a30fbd958349d4762e483737696ec94262127b42 GIT binary patch literal 569 zcmV-90>=G`P)sI5;qIy?%dHPC#^tSD6_D zcqN!KcR`Iqq{!7aFOYGhp;aOlZ?=1O0#piEB@Fnga+o$fzV-hRiDHQ`Y?8THmCTm4 z36WnK08E;R)&y8kvr@pdlqfMkc@9)P>O&`^97Lck%gG$8kWY*Nmw;tYhib8_A{DU% z8k!?(o&F}ZTmn{}N|}QpyQ`I_AqQB*ukh*Hehp#{@M=$GAUBd29sSVt4!}JRFeP`} zVoT?MVP;@8NL8K1i3A;iRNIo0F|F%lEH-jfTdYx@?te+E&v`!o5P$2 zbtq^F7DHXU9XVpOHU-94#etnUg=jIE7}7Uk(!(p8i~~0H{xYM(xn8&5-vgb1ynzMh zDAMB%mPeZuuRQ5*kOf}LyfTzKy2sJW2BiZxmEvix;JS)RPVjm#(4By{+?=JK0P&a_tk zVP)OGo1bRj{c3gxYsG@{V>iSepDK#pAC;|{`ZYvjemeVyS)pvF`=4%;SRB@@-1K{D zitL6>)4#Y(Dm}0w-*lq=hvh=z52TdD7QBCX_Dt?^R(1x459<~@XZ-%nk0VU`afH$j z3BA?xzHems-W~Z*Zu!i%G|v~SmCiMNOOdb1^SaD9`Pa|zX+dkP6^fR}Cw%y+^6$<1 z>n!!%cRw^8x7GjGo#P^5|3b3!+ltfI6k1=ucbfRO`~JfXOT>YJ00sZfm|N6!$?~jV QNe78|y85}Sb4q9e0LMg&z5oCK literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_1_0/app_context/high_watermark.png b/test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_1_0/app_context/high_watermark.png new file mode 100644 index 0000000000000000000000000000000000000000..a970fc01303e21c32f0db20b1130eeeee3e1d660 GIT binary patch literal 400 zcmeAS@N?(olHy`uVBq!ia0vp^4M6O`!2~2@x4h6`U||>c0$z4^E>BgPkk5s z(CX}&Nl{{|hqM01JKkC=TlKDR?~9=2wRJ1LHO!BT{>z`Z_G!er*?Bi&*6s9D<|?QW zwOem2F;}T-%L>~+5ff)!(WyKgd-%)jl$`?N21)D+i~mh8;QZ{$$l$Q_Om0{Awa4fF z%!)kspFJsZcC7RL^8Q&R*@DEc;OCdW5JEglf*RU;#An+5(`+ce z_;#QI`M%yBC>%@-VHmwD@_i>5K9~0lh8=r0;jgCA{N(+B7XI178#7L3brB>*fD~hy zto_%QUMQ53gk5&t2P}991-?_qtzmKXWGr6@Oxb#yVS(di1pEWz*%g2<95W}zuYvgU*JZY1Dj{oH8P7V|Aowu_BM5TIvE=?D~Ta7t|p|2wcy@$cQn^o`|r^p zd)O7=g9w*x?`Am6h1p@iG4$dxTPGL<27>9e@GnO%?!v1#6yc#;xdfS(ZZ^)PNfTfQ z5^}EgmHm+W=0JEJ*o8!8kYvrlQG9xl8p@oDho`jgu`BF_)sVRgE-rk;U(ZODsxZ5jQ8>-7S=z!P57*L;>c9Klj}T% zi3uRT4y(!+zvvda@Km?UI?DU+aHlf!%Cs0VzYV=jNZB0Gcdw!dbK9$U%Z07~Q@;(p z=mVR-mrez|^ZJNk?!&AsX)|RzCMB>#J6jfm6|j7e0#(E4mp-|8bYmY%s*HyGz3&a_tk zVP)OGo1bRj{c3gxYsG@{V>iSepDK#pAC;|{`ZYvjemeVyS)pvF`=4%;SRB@@-1K{D zitL6>)4#Y(Dm}0w-*lq=hvh=z52TdD7QBCX_Dt?^R(1x459<~@XZ-%nk0VU`afH$j z3BA?xzHems-W~Z*Zu!i%G|v~SmCiMNOOdb1^SaD9`Pa|zX+dkP6^fR}Cw%y+^6$<1 z>n!!%cRw^8x7GjGo#P^5|3b3!+ltfI6k1=ucbfRO`~JfXOT>YJ00sZfm|N6!$?~jV QNe78|y85}Sb4q9e0LMg&z5oCK literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_2_0/app_context/high_watermark.png b/test/python/snapshots/nanosp/test_sign_when_no_chain_setup/sign_2_0/app_context/high_watermark.png new file mode 100644 index 0000000000000000000000000000000000000000..3a5efb2f7b5ec6498d48ea403dd988ff611863c0 GIT binary patch literal 413 zcmeAS@N?(olHy`uVBq!ia0vp^4M6O`!2~2@x4h6`U|>w~ba4!+nDh2VbkSi29*4k7 zC;hhkSKT8IetS2Orl@_Tiys?L3Qx7MXtlwGm2owcs?&yM^IPhZ(67nPXB_Op`ZlKOVf zi2u3jnry(PFHR|i9jXs!T|Y5B_z`Z_G!er*?Bi&*6s9D=6bN7 zYyEXen>k8VTb!%^Y*aE`8Tn~iHP7YpNl%?(4s^&i^!$oHq&R*@DEc;OCdW5JEglf*RU;#An+5(`+ce z_;#QI`M%yBC>%@-VHmwD@_i>5K9~0lh8=r0;jgCA{N(+B7XI178#7L3brB>*fD~hy zto_%QUMQ53gk5&t2P}991-?_qtzmKXWGr6@Oxb#yVS(di1pEWz*%g2<95W}zuYvgU*JZY1Dj{oH8P7V|Aowu_BM5TIvE=?D~Ta7t|p|2wcy@$cQn^o`|r^p zd)O7=g9w*x?`Am6h1p@iG4$dxTPGL<27>9e@GnO%?!v1#6yc#;xdfS(ZZ^)PNfTfQ z5^}EgmHm+W=0JEJ*o8!8kYvrlQG9xl8p@oDho`jgu`BF_)sVRgE-rk;U(ZODsxZ5jQ8>-7S=z!P57*L;>c9Klj}T% zi3uRT4y(!+zvvda@Km?UI?DU+aHlf!%Cs0VzYV=jNZB0Gcdw!dbK9$U%Z07~Q@;(p z=mVR-mrez|^ZJNk?!&AsX)|RzCMB>#J6jfm6|j7e0#(E4mp-|8bYmY%s*HyGz3&a_tk zVP)OGo1bRj{c3gxYsG@{V>iSepDK#pAC;|{`ZYvjemeVyS)pvF`=4%;SRB@@-1K{D zitL6>)4#Y(Dm}0w-*lq=hvh=z52TdD7QBCX_Dt?^R(1x459<~@XZ-%nk0VU`afH$j z3BA?xzHems-W~Z*Zu!i%G|v~SmCiMNOOdb1^SaD9`Pa|zX+dkP6^fR}Cw%y+^6$<1 z>n!!%cRw^8x7GjGo#P^5|3b3!+ltfI6k1=ucbfRO`~JfXOT>YJ00sZfm|N6!$?~jV QNe78|y85}Sb4q9e0LMg&z5oCK literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_1_0/app_context/high_watermark.png b/test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_1_0/app_context/high_watermark.png new file mode 100644 index 0000000000000000000000000000000000000000..a970fc01303e21c32f0db20b1130eeeee3e1d660 GIT binary patch literal 400 zcmeAS@N?(olHy`uVBq!ia0vp^4M6O`!2~2@x4h6`U||>c0$z4^E>BgPkk5s z(CX}&Nl{{|hqM01JKkC=TlKDR?~9=2wRJ1LHO!BT{>z`Z_G!er*?Bi&*6s9D<|?QW zwOem2F;}T-%L>~+5ff)!(WyKgd-%)jl$`?N21)D+i~mh8;QZ{$$l$Q_Om0{Awa4fF z%!)kspFJsZcC7RL^8Q&R*@DEc;OCdW5JEglf*RU;#An+5(`+ce z_;#QI`M%yBC>%@-VHmwD@_i>5K9~0lh8=r0;jgCA{N(+B7XI178#7L3brB>*fD~hy zto_%QUMQ53gk5&t2P}991-?_qtzmKXWGr6@Oxb#yVS(di1pEWz*%g2<95W}zuYvgU*JZY1Dj{oH8P7V|Aowu_BM5TIvE=?D~Ta7t|p|2wcy@$cQn^o`|r^p zd)O7=g9w*x?`Am6h1p@iG4$dxTPGL<27>9e@GnO%?!v1#6yc#;xdfS(ZZ^)PNfTfQ z5^}EgmHm+W=0JEJ*o8!8kYvrlQG9xl8p@oDho`jgu`BF_)sVRgE-rk;U(ZODsxZ5jQ8>-7S=z!P57*L;>c9Klj}T% zi3uRT4y(!+zvvda@Km?UI?DU+aHlf!%Cs0VzYV=jNZB0Gcdw!dbK9$U%Z07~Q@;(p z=mVR-mrez|^ZJNk?!&AsX)|RzCMB>#J6jfm6|j7e0#(E4mp-|8bYmY%s*HyGz3&a_tk zVP)OGo1bRj{c3gxYsG@{V>iSepDK#pAC;|{`ZYvjemeVyS)pvF`=4%;SRB@@-1K{D zitL6>)4#Y(Dm}0w-*lq=hvh=z52TdD7QBCX_Dt?^R(1x459<~@XZ-%nk0VU`afH$j z3BA?xzHems-W~Z*Zu!i%G|v~SmCiMNOOdb1^SaD9`Pa|zX+dkP6^fR}Cw%y+^6$<1 z>n!!%cRw^8x7GjGo#P^5|3b3!+ltfI6k1=ucbfRO`~JfXOT>YJ00sZfm|N6!$?~jV QNe78|y85}Sb4q9e0LMg&z5oCK literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_2_0/app_context/high_watermark.png b/test/python/snapshots/nanox/test_sign_when_no_chain_setup/sign_2_0/app_context/high_watermark.png new file mode 100644 index 0000000000000000000000000000000000000000..3a5efb2f7b5ec6498d48ea403dd988ff611863c0 GIT binary patch literal 413 zcmeAS@N?(olHy`uVBq!ia0vp^4M6O`!2~2@x4h6`U|>w~ba4!+nDh2VbkSi29*4k7 zC;hhkSKT8IetS2Orl@_Tiys?L3Qx7MXtlwGm2owcs?&yM^IPhZ(67nPXB_Op`ZlKOVf zi2u3jnry(PFHR|i9jXs!T|Y5B_z`Z_G!er*?Bi&*6s9D=6bN7 zYyEXen>k8VTb!%^Y*aE`8Tn~iHP7YpNl%?(4s^&i^!$oHq&R*@DEc;OCdW5JEglf*RU;#An+5(`+ce z_;#QI`M%yBC>%@-VHmwD@_i>5K9~0lh8=r0;jgCA{N(+B7XI178#7L3brB>*fD~hy zto_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5ZknjvxJ? zhQ4QAd#h{_IsMNJM^!j3aFlUt2;CfK7e|XO#O*4ZDs+JmOI%k0halNCx_R$+{<_jX z*HHS+*IRi z7j^-Y!=_7L-{*KTWAo)=sY?hYi@W^jezvf=$|=2GMnS5XfK4A<--Gjp2fU!dP&Qu{ z-LS=(p~{m%cWIVGCFQj)c*uDTIAe}An}mN-f%P>>L=@^^e|8|Dwr+Ucu{VZ6zp zA7aj*gA779?KFT}jiU-L+a89ydBC~lyi}jnvlH@}alJy%d(D@#hI)Fn(TK^vhfLFS zLRfh$#JY!d=Q9_UxTA%Yjs6+|=xhDu!ztuy)mw%!=U7j6ytXooihyJc945O$i6-15{(9m61cNl}x$ggL zGKsBk`1b$VWK@~FxFc6z0t`f3^f$y_{crR?J3e#s^y^{ZwJs$~XLxV&n0So5uE#%v z6-BqH9SmkHXd}KRq1J4X*d|SWEwn z?R4MP?!!iO6Q~5gBmLhXc6M#fiz_Vusbe;8Mf~?zk&=w#u;jg9W8((;Y2SaYAv@I5 z7-;h(!S&}6JE!)4Pt-sqDd~}D+o?02+|TRjqK%)OtBL>S5#LYN+#;A#_0pWGQUBeD ze}hZdb(d3uND4J>^d{qd|GBYgyW{YXxBc|3Wya)5#Zn+&8LM>}Cn$*rjh&@(fM_jx z_x+a)Bi9+B8FmrV?tVaI&qt(h`^2lWr-jciyvG;$X9kTIsgXi*4!-I_atxebl&JSj zslf&0=0y_I=p*LeD|>_Bo_scWgrRLl)ywAA(Yuh9AMeUP4&LWhr=9-b;QXTeq>6sR zPCEWOCt2CF42K2!&axIK2!b}j$%sfF8&{yI&~}v>t;jQhQ8JM1VlQn|AdwY#x5%6X nvCJfSHXQy>zQpjm<-F@7*_rRJOo5jUS-=K&Zj@hle*C`x%co^6 literal 0 HcmV?d00001 diff --git a/test/python/snapshots/stax/test_sign_when_no_chain_setup/sign_2_0/app_context/app_context.png b/test/python/snapshots/stax/test_sign_when_no_chain_setup/sign_2_0/app_context/app_context.png new file mode 100644 index 0000000000000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bZ^}E#?v4WY15!)2YoP127<&#Q?Y&7MdqIt1mM#Wi7RX zxDz@M)>Cg?joz`Tt%|-fNhbnBecUJ7JPYiZ8m717OYrFP@Ik(#@F|?AnVRLP_TX!6 zK(K7D7VbRRxf!%~Z>iE@b2&!}aiV>IOmy&@q;Vco)L zdFWR5c+WJxk5&jLJj4o+fz3fbQY`$eLhRL$-rZHn-5~t~U+eN$z{{ma_X)h|s~<=# zOScZTCqvd3(7<trI=AZQCyIFV%ni5GjG~o)u1(^Tgg>mF_i~2tC_VQ{Qh^DkuU9y0)HTL z-0Rru6{))xE{XR2cV&j^oc(*9U8zMc=`4}+JV7`M*=u|NS0^ aQlqSs_tTpYd%!;*8FaM`?;`HlzxZ$EMz0?L literal 0 HcmV?d00001 diff --git a/test/python/test_instructions.py b/test/python/test_instructions.py index 50653a95..8746c631 100644 --- a/test/python/test_instructions.py +++ b/test/python/test_instructions.py @@ -177,7 +177,7 @@ def test_setup_app_context(account: Account, tezos_navigator: TezosNavigator) -> """Test the SETUP instruction.""" snap_path = Path(f"{account}") - main_chain_id = "NetXH12AexHqTQa" + main_chain_id = "NetXH12AexHqTQa" # Chain = 1 main_hwm = Hwm(1) test_hwm = Hwm(2) @@ -588,7 +588,7 @@ def test_sign_level_authorized( def test_sign_not_authorized_key( client: TezosClient, tezos_navigator: TezosNavigator) -> None: - """Check that signing with a key different from the authorized key is not authorized..""" + """Check that signing with a key different from the authorized key is not authorized.""" account_1 = DEFAULT_ACCOUNT account_2 = DEFAULT_ACCOUNT_2 @@ -608,6 +608,67 @@ def test_sign_not_authorized_key( client.sign_message(account_2, attestation) +def test_sign_when_no_chain_setup( + client: TezosClient, + tezos_navigator: TezosNavigator) -> None: + """Check that signing when no chain has been setup change main HWM.""" + + account = DEFAULT_ACCOUNT + + tezos_navigator.setup_app_context( + account, + DEFAULT_CHAIN_ID, # Chain = 0 + main_hwm=Hwm(0), + test_hwm=Hwm(0) + ) + + attestation = build_attestation( + 1, 0, + DEFAULT_CHAIN_ID # Chain = 0 + ) + + client.sign_message(account, attestation) + + tezos_navigator.check_app_context( + account, + chain_id=DEFAULT_CHAIN_ID, + main_hwm=Hwm(1, 0), + test_hwm=Hwm(0, 0), + snap_path=Path("sign_1_0") + ) + + attestation = build_attestation( + 2, 0, + "NetXH12AexHqTQa" # Chain = 1 + ) + + client.sign_message(account, attestation) + + tezos_navigator.check_app_context( + account, + chain_id=DEFAULT_CHAIN_ID, + main_hwm=Hwm(2, 0), + test_hwm=Hwm(0, 0), + snap_path=Path("sign_2_0") + ) + + attestation = build_attestation( + 2, 0, + "NetXH12Af5mrXhq" # Chain = 2 + ) + + with StatusCode.WRONG_VALUES.expected(): + client.sign_message(account, attestation) + + tezos_navigator.check_app_context( + account, + chain_id=DEFAULT_CHAIN_ID, + main_hwm=Hwm(2, 0), + test_hwm=Hwm(0, 0), + snap_path=Path("sign_2_0") + ) + + # Data generated by the old application itself HMAC_TEST_SET = [ (DEFAULT_ACCOUNT, From 31d4c4e61f84a25e7b7cf33e70e1c186fbd48cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Mon, 5 Feb 2024 14:21:17 +0100 Subject: [PATCH 2/2] Tests: add test check HWM after signing when a chain has been setup --- .../app_context/chain_id.png | Bin 0 -> 421 bytes .../app_context/high_watermark.png | Bin 0 -> 345 bytes .../app_context/public_key_hash_1.png | Bin 0 -> 559 bytes .../app_context/public_key_hash_2.png | Bin 0 -> 569 bytes .../app_context/chain_id.png | Bin 0 -> 460 bytes .../app_context/high_watermark.png | Bin 0 -> 400 bytes .../app_context/public_key_hash.png | Bin 0 -> 792 bytes .../app_context/chain_id.png | Bin 0 -> 460 bytes .../app_context/high_watermark.png | Bin 0 -> 400 bytes .../app_context/public_key_hash.png | Bin 0 -> 792 bytes .../app_context/app_context.png | Bin 0 -> 15835 bytes test/python/test_instructions.py | 59 ++++++++++++++++++ 12 files changed, 59 insertions(+) create mode 100644 test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/chain_id.png create mode 100644 test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/high_watermark.png create mode 100644 test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/public_key_hash_1.png create mode 100644 test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/public_key_hash_2.png create mode 100644 test/python/snapshots/nanosp/test_sign_when_chain_is_setup/app_context/chain_id.png create mode 100644 test/python/snapshots/nanosp/test_sign_when_chain_is_setup/app_context/high_watermark.png create mode 100644 test/python/snapshots/nanosp/test_sign_when_chain_is_setup/app_context/public_key_hash.png create mode 100644 test/python/snapshots/nanox/test_sign_when_chain_is_setup/app_context/chain_id.png create mode 100644 test/python/snapshots/nanox/test_sign_when_chain_is_setup/app_context/high_watermark.png create mode 100644 test/python/snapshots/nanox/test_sign_when_chain_is_setup/app_context/public_key_hash.png create mode 100644 test/python/snapshots/stax/test_sign_when_chain_is_setup/app_context/app_context.png diff --git a/test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/chain_id.png b/test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/chain_id.png new file mode 100644 index 0000000000000000000000000000000000000000..13fd76040a79388d55efd0686e5edf8315fe24e8 GIT binary patch literal 421 zcmV;W0b2fvP)T(kuIFE6p;WLW0U`;3x_C@kDAKk0RR91Ovm>A{<6h55VS&dr^d_i zIy-)mx4D8s466~GuQTd*LSfV{qrM$DOIzc*%m6b(Co z=76;mrN#1XC}Fd(BPChH0F2ldQ`z&lGwr6>MTFdk;F1+N=npgn0NjZW!;cVr1LKx4 P00000NkvXXu0mjfa~`>T literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/high_watermark.png b/test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/high_watermark.png new file mode 100644 index 0000000000000000000000000000000000000000..0cccb5b4aca404479c52128b4de8509cf54e81ad GIT binary patch literal 345 zcmV-f0jBFBFgn0000OW#8l?t5=%T9_<@124d~~ zV{1-eSvy;aL*2Kk!B}B>`MP_^A!7kzl~;8tt!1^+w`jR6ifxbo)H|t6g&0zzC_lNr z`GchSTgLQQJT?@qHGL_mQfX_q+Dumfn;@<TY@DXU9;J3hxK6|hAfrW4%i2li5nqu9DktByTf*CD4BRg+5Fk?>`wiz7 zc0zqELIe<$n}G(Agk>Q>f%~u($}Teh1~Ym0+9ZUPwZNP)>XbRG!X z0Sze|9qs3pEGd z#JP8&v*W*!Z$@<}Yu21djtt#Iddtii=yLPA+th7KH^;}M_dTyb+QG#Q2<)6$1LPK2_Im(> z4JPzcz^K)yWiB61RU{j_#xF5>X(DU?{Zbl+SOMnB_0GeoIm9O8g`thJ?3i7^3NZ0X xm=`p`;m|lbzi;A@4>E-`TqAi|C=?18#RJ!@m~(NYZ)5-f002ovPDHLkV1fe>`k?>- literal 0 HcmV?d00001 diff --git a/test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/public_key_hash_2.png b/test/python/snapshots/nanos/test_sign_when_chain_is_setup/app_context/public_key_hash_2.png new file mode 100644 index 0000000000000000000000000000000000000000..a30fbd958349d4762e483737696ec94262127b42 GIT binary patch literal 569 zcmV-90>=G`P)sI5;qIy?%dHPC#^tSD6_D zcqN!KcR`Iqq{!7aFOYGhp;aOlZ?=1O0#piEB@Fnga+o$fzV-hRiDHQ`Y?8THmCTm4 z36WnK08E;R)&y8kvr@pdlqfMkc@9)P>O&`^97Lck%gG$8kWY*Nmw;tYhib8_A{DU% z8k!?(o&F}ZTmn{}N|}QpyQ`I_AqQB*ukh*Hehp#{@M=$GAUBd29sSVt4!}JRFeP`} zVoT?MVP;@8NL8K1i3A;iRNIo0F|F%lEH-jfTdYx@?te+E&v`!o5P$2 zbtq^F7DHXU9XVpOHU-94#etnUg=jIE7}7Uk(!(p8i~~0H{xYM(xn8&5-vgb1ynzMh zDAMB%mPeZuuRQ5*kOf}LyfTzKy2sJW2BiZxmEvix;JS)RPVjm#(4By{+?=JK0PC+W|UfXS-p$%nlW_vv7tIp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X5HS1->$0sk|ClXVPW_nqP_AF>Ut zB>ofh&j%v(nb9qAw3|r|#D67%oLJqTKsY8gz0&u_7X8nt{WvKZuVhSArYYZaj=b|IESz#cI%8`kH|-{Jxh@q*VLaED^JC!02SU5B>ITkezrw~0Ja`)T zmE=fkRT=*xpY4x~soH`HKZn2>SktPz^T|h(yR*K_D|n@cj}^8T7BKu3w$cdC3$(*; zSBoQV6_-)|T>@UGH{QvA$89<3sokm!LaWz;$aUjg;{`g6ZL4rzGR3U6{-3N)ikXu2 zI6yq|=l8%xb%)uBwN59x$DH{tgDcqlPkT6jGp{MvpVDEz5eK}qO=qZYcB}fP%k%#M Dwk|O3 literal 0 HcmV?d00001 diff --git a/test/python/test_instructions.py b/test/python/test_instructions.py index 8746c631..67fffcaa 100644 --- a/test/python/test_instructions.py +++ b/test/python/test_instructions.py @@ -669,6 +669,65 @@ def test_sign_when_no_chain_setup( ) +def test_sign_when_chain_is_setup( + client: TezosClient, + tezos_navigator: TezosNavigator) -> None: + """Check that signing when chain has been setup change main HWM.""" + + account = DEFAULT_ACCOUNT + main_chain_id = "NetXH12AexHqTQa" # Chain = 1 + + tezos_navigator.setup_app_context( + account, + main_chain_id, + main_hwm=Hwm(0), + test_hwm=Hwm(0) + ) + + attestation = build_attestation( + 1, 0, + main_chain_id + ) + + client.sign_message(account, attestation) + + tezos_navigator.check_app_context( + account, + chain_id=main_chain_id, + main_hwm=Hwm(1, 0), + test_hwm=Hwm(0, 0), + ) + + attestation = build_attestation( + 2, 0, + DEFAULT_CHAIN_ID # Chain = 0 + ) + + client.sign_message(account, attestation) + + tezos_navigator.check_app_context( + account, + chain_id=main_chain_id, + main_hwm=Hwm(1, 0), + test_hwm=Hwm(2, 0), + ) + + attestation = build_attestation( + 2, 0, + "NetXH12Af5mrXhq" # Chain = 2 + ) + + with StatusCode.WRONG_VALUES.expected(): + client.sign_message(account, attestation) + + tezos_navigator.check_app_context( + account, + chain_id=main_chain_id, + main_hwm=Hwm(1, 0), + test_hwm=Hwm(2, 0), + ) + + # Data generated by the old application itself HMAC_TEST_SET = [ (DEFAULT_ACCOUNT,