From 2526debd6ec644926fa6845ab0767071650e2f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Thu, 12 Dec 2024 10:09:31 +0100 Subject: [PATCH] [fix-touch] stop receiving data if the stream is closed + add testing signing micheline expression --- app/src/ui_stream_nbgl.c | 2 +- .../test_sign_micheline/micheline_screen.png | Bin 0 -> 6325 bytes .../test_sign_micheline/operation_sign.png | Bin 0 -> 8754 bytes .../signing_successful.png | Bin 0 -> 6357 bytes .../test_sign_micheline/micheline_screen.png | Bin 0 -> 5875 bytes .../test_sign_micheline/operation_sign.png | Bin 0 -> 8140 bytes .../signing_successful.png | Bin 0 -> 6218 bytes .../integration/touch/test_sign_micheline.py | 39 ++++++++++++++++++ 8 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 tests/integration/touch/snapshots/flex/test_sign_micheline/micheline_screen.png create mode 100644 tests/integration/touch/snapshots/flex/test_sign_micheline/operation_sign.png create mode 100644 tests/integration/touch/snapshots/flex/test_sign_micheline/signing_successful.png create mode 100644 tests/integration/touch/snapshots/stax/test_sign_micheline/micheline_screen.png create mode 100644 tests/integration/touch/snapshots/stax/test_sign_micheline/operation_sign.png create mode 100644 tests/integration/touch/snapshots/stax/test_sign_micheline/signing_successful.png create mode 100644 tests/integration/touch/test_sign_micheline.py diff --git a/app/src/ui_stream_nbgl.c b/app/src/ui_stream_nbgl.c index ceda988f5..abb476e36 100644 --- a/app/src/ui_stream_nbgl.c +++ b/app/src/ui_stream_nbgl.c @@ -321,7 +321,7 @@ tz_ui_nav_cb(void) tz_parser_state *st = &global.keys.apdu.sign.u.clear.parser_state; // Continue receiving data from the apdu until s->full is true. - while (((s->total < 0) || ((s->current == s->total) && !s->full)) + while (((s->total < 0) || (s->current == s->total)) && !s->full && (st->errno < TZ_ERR_INVALID_TAG)) { PRINTF("tz_ui_nav_cb: Looping...\n"); tz_ui_continue(); diff --git a/tests/integration/touch/snapshots/flex/test_sign_micheline/micheline_screen.png b/tests/integration/touch/snapshots/flex/test_sign_micheline/micheline_screen.png new file mode 100644 index 0000000000000000000000000000000000000000..9426c75487fb414838bca96b96274d364fb8f85e GIT binary patch literal 6325 zcmeHM{Xdgy{8xH@piW9hveVH6rO{~>!=@xeB#nxh6cQtkW7v{TJCTRdA&)CUO*p76 zW=1M$4DBGzZ65M4W5Z?-Y<%x?Uf)09{P2B!U+0H&{czu}`?~J?`druNb6wZx{eIu~ z&pX*}-k`HVO-*gHz1`^xYHBM6)znsATDKCcIo48WtERRy&i?eti_v-0fCx3&_N{Sf z3YWjeXMNQwqZJOn?Xy~cVP&Qocq>_DxZnWb~b_i zxw?MtsPvn+i21Z01KwO}IpyHF`??D;oQth|=FfxF;Wc;!S=;7_P6~Cd>Poqnmse8Z zP7PA+4Y8sg%N@FPsdt{ma)4K5GT-3VpT^svdr_$3-8*cmwojAWU)X1)2{f4R;QWsy30Dv$C?vA(V>1?0YxvIE8{06iQN| zUAFKn2K1tca__Z4xe=?$J6(ES%Z39pYw|drdv3w)a;ER)F_M-|l_xaZx{UJq+Shi! zquGws>L*^u=RPX>xYXTgExbN?x^Spizk_r_FO6>O;_<~5M=Ydb$Hj_LR?zK38{v1L zNy7?7jD;RJS8_*qa`>YHG8qT?0z2oT<&oG9j!hEP5Re0$9KQMHAZt#csLdTKGyq4C z6Ze906P_PM{(18ijF(p(#(7uB<^(SFoFTbm98h2S@-a42v(ntl$ykqHIuMIEp2G33 zxlFL*!1%{PYCW$UTKUW~b`_vYedF5@TpW;N@uF@0z+?c`e0%yxu751ev6KTaiv6(N zX4A;_gdj9NP za7r8)S;Guz=^Xv>BbHm@{)%Df9KK(nJ1E5Ahy!2%ycEZC+n>231{c6}2i4@##+~UPD*u(gVQiG&I^UHa4nI#($`KLj5kTfbyXBJ%Il=ZQ) zdKy!a?613NMs%8ae&6Ahtni-zS0X*t=yn-pQbL<~>B@f$%x<1@pL-Ak|1+Yeg3f*} zaM%UGOGl7F3!3^q6K~!gSYK0Df!uwxVB-B&pM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iRW7!Mt&8G!J}}B>l=q$g0dQCung9R* literal 0 HcmV?d00001 diff --git a/tests/integration/touch/snapshots/flex/test_sign_micheline/operation_sign.png b/tests/integration/touch/snapshots/flex/test_sign_micheline/operation_sign.png new file mode 100644 index 0000000000000000000000000000000000000000..5e787d8ed6eab5e6e486451526e7b56951ce0adb GIT binary patch literal 8754 zcmeI2S6GwTyY?xHq5@X1P;?X<%|Zt$DuN(EVIY)1Y;@_7o&YimBO@qir~#Cc0fa~m zEy*~Ds4=vFkrDzz5?Tl(KnS7i<;=-<_#N&4-q*ErLh`<3y=y&dt>?M#-^%YdA(k>b z4(|{X6O*}ab=6)>Ong*KOu~7)1h}Hp@y1e2?3nQSRr6mX^Eh;l2GWu}cUi$Nm?fAC)UXeLn?8Ntl zVn?$!TONvweYZ7}+@e}2{%CKvn7Oo1eBl;tvzro!kDeBn+5IwJYPWwu6K_^Hyu;q`)V93P zH$9KQZ12oD?Rxl~(GfCMJ2Ka(FZSe74WH+oV1Wq3-l|dvySvvk4D}k1OXQedH4KAq z(T>YRoYWVmz;F4R*m(cg*S#j)n;mnaFe^SnDKAs=jSiC2d=hcu~H`!S+Cc!8bBa4H2k+)nDG@p`^-K1XY^s)QfE#E z1}XSo-B%FLIxh`Vj*n+~)L)%Xn0mX%HdrD@6db9QG;rE@*LY#m5zs>YwLqI(s3Bjh zuCVFUwvTf?Q*Sd9Z-NgODbfiP%dzv@edf}Svb4I}#s8m;(G)|}cxTzVlRdu+cr&14T4NYGNcwSPdwaViSnKyg7Z|?8Se!fLJLfx*Pg@4~b zC7H)cPXc?V8%u4QCLH?zNg% zKjNk8eSSth(Fgu1j{R|WUOemd>`XfP)9`U|O55Hq!$w8=V*kyX8fiYWwEE3r)GoN> zQu!vmSxj)J2^OfE%L#YeZ{dRWbO~>vqdByhha?6g5RZX)S3B1Q?Xqmasd2`~@6`?z z7m#ZdcS+$jx|FiI*o@g~*UD(ZNGIP3%^VsUqS0ubr&!#KKzt1IENZaS9t3yRykEn_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Qx1^5>TRwTPkfqC+nUiZwBiK!{S@of$P6v?tNP$rw0 z5b)1IJq1Of!Md*9FsJ4Or#1W;%v=LAx4t8=3b})^M^u&{TIHBG3frQspnY&xxy1`0 zzxn*Ir|qBb+qQl6#|oR$>yq95EJ12_y#}qMA>eb9 zMT*r0<=)3Bdml6u=~OozKz75rKskB!1k7AiO8pKhz_xiBHS|F5T9+I=9hH21IfES; z=G)xkvj`>yym-7`l#jmYc%ebd^t4}UVrPqzUmEKfBla8*L^=O;ze=3qHsmOZSR2x9 zacg2<3qR!N!NF>biEOihn^LER!ZxVR!CfFI)4y-5tbFSDN@4T+tby(T)Hd<`QHubR zI^lEAjkND}M3e)GVMjjOKR7CM0AFxSVTKC3OgHyiREM3B)Bjyw+Z*ccZsfg}^=#6W zUyJ+@5)h=3qPp&9nq;gRw4EAuugT zab^8`M2BRP070i_MJ;4-o=e9gl$doi5%w@2mmUB3P3zW_vPwZH%X literal 0 HcmV?d00001 diff --git a/tests/integration/touch/snapshots/flex/test_sign_micheline/signing_successful.png b/tests/integration/touch/snapshots/flex/test_sign_micheline/signing_successful.png new file mode 100644 index 0000000000000000000000000000000000000000..be51a9d5595cf5ea25f8f90b684306d30395f329 GIT binary patch literal 6357 zcmeHM`&*J}w>D=cGc!A?<>~92sjNn`H1m{nGN-9DGtY`yjS?9uCa9b;D;pi9K1;_V zrqfuGQW+s4xXm##QZyt|PMHx3A_^fQr~NkjKiJp4_D}Qv!o_>wUC+Ajb+3Cp{CYAh z)OPvCz?nVF#!w3j$J(QZ51h`eRS4xdV~M?O5l@+X zi){xym;8KXO{Vq9tJ{`TT5R^)yx;ny<()G>zcSsM^ZH_aYnPQA5hUGNbSCy=X57ub zk32q~5Al&%tom#w@3XK7TMM~z($aR-&kaisTKnvGFIc*4^N_{8Z#Vwy&i-$%t@-ET zKS}t93IB_7c<{BlI^IIbV+usgKx+Hwv{o;KAs0xE?!}Fh2pS!n;pO-xpKi~zj#&#~ zRPlH`E|eVKx^b|buXqhM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dJ`>c;@PV1L0-a-2eap literal 0 HcmV?d00001 diff --git a/tests/integration/touch/snapshots/stax/test_sign_micheline/micheline_screen.png b/tests/integration/touch/snapshots/stax/test_sign_micheline/micheline_screen.png new file mode 100644 index 0000000000000000000000000000000000000000..9ef4d5372e65ff562bd6ea2615ea9c6192dd9938 GIT binary patch literal 5875 zcmeI0`&&}^_Qx?xr@VEhIi+bh%}iR8{o%0ube>u9-)-`ixz-W?zi$i(OD=|B)juL16;d>5c!g zQ<~*|XJ_<;Li0F{%Sgy~YMnlXCP5UDzuoQe#%m@14f)Gc6W| zlc88^FqltX4a9WH66?nn=I1W}>tk>&^Yb)r&B0W!w)jLP#DdE+ zGrq5_t&Jz3Q-uiozD{B0hO}};(vWb2)&RkBuhyBe*mmZoFL^u_Q%c$E5hU4=2LQ-=;dV{X^?-U%Dw^`?SobE5(yoZNB6Q?Z?}dw|;`^-mm6F ze&&LnAQ%j&CrKny=JzQ&R~KcWfA1IXJi2jSDQ*p>2G`zOL66pw0tCs3@j$k>+#%o5 z-1tZIGhj_O=Ca`f-8ZlrcuFS`$WpeWR)}J{W+)F-{R^i z|BpNJK30|6RQqtOq8nvx=I3yZxf^E-yn3yoCput9#!TJcMOphj9lgtlF!RX7S4+KI z;Vcb5EB$4t*t?l=#kSoyd-PkJT|B+C3UZhYgSX@0 zQ{L5O$8oN)&=9OT^vJ=s_4-*z)A!~4C@?rP3KAgv726283KAM}CH_g+8*C73{HiqDJ#@SImLn{mj z2oUah{L{X5m*-V0%{)F_@Oyk8r=YN=^Ff^K4I4L&@5GKclAZOz+OMdG&nGgoL{eRG9f%UeOiBNfguct)u6H0I$ zT^u~5TM&sJxg(>aqt($bSvvL&o-dz_(-L;oEJJx&%V<*VCS`nHzkg`xDC)O!HcZj0 z1OhF?Zg(kRS59s&NA=*vVRRO(kv)(Gx|>Lj0A|GZbcxN@xVy@w-r6GbMTqdqm)h3Y%?_9!n| zsuPCLCm&wBM!gr`lT^op5j;zQ7u*yE2-fDE8X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>9Op=sH%nN^}fc%-i!V zz=8B@1Dw1~%F}O5H+bwxo5nxILt4f}H@?wuNF=~BeRI^Hi zSFzv?3aZ2zTrRG^>nJXsYG+Y674UHCQvErb5922*0CzWW8LpgH4t`ubs=f-y=o$`+ zC6sljyE{w{kEza&2Vxd}Cpf;6y#{)&Yf2h>Dz#JqmQMj2cGD2y`-t$^J1XAnEQQ2a zv&EE$C9!i2X`;KB5Wg%AcQ2pM2i8pLbZ|*2hPDH=nYW_#Gd6@OB$7_;iFZ=kblzLl zt|y{wl~S3bDHa83H!0X7rn6ki?C1-Gh}!O%To;dvAR{+w0I*i6B21CaVTMqG)doZ7 zhR0`+hlVcidqHV9;YO!m;|oF;J6XWP;bp(QewN!jidLiV1bf`LpkUEN*~Ey>_2mj6 zXWD!^E+TDTIMiZFH;EHT9lLDMY>g zJ?1MH&HPCX5wMn41B=YPOR%1Z&Lw0cN{J6#oTJ?FeHfgzpQ>s)Wj152Qxqz%70%Hs zJqLpd>f~vWXFKbRP`6h~rBdmVQEuar1V*%_>f@3~c@StEf>}TsV%Y6z5X;u_76*Fm zKTaQxZcks2aGbs5qpVaVNt5AFYjR)7CkKLseYq1StCp=gYHMq=%=CtC0z$KWF@Ykh j+Nq5HPmO(_>GYZkk;@K2!D?Wb4f65wKi&0h%+-GaSvs;Y literal 0 HcmV?d00001 diff --git a/tests/integration/touch/snapshots/stax/test_sign_micheline/operation_sign.png b/tests/integration/touch/snapshots/stax/test_sign_micheline/operation_sign.png new file mode 100644 index 0000000000000000000000000000000000000000..c1e5457dedbee82244cd3aa9919d7a5ce7c5d7d8 GIT binary patch literal 8140 zcmeI1X;@NgyT@&`cBSnGD|4upY!=W=Umsh-Vf(`*O#@{vleSDp8J08=l}mb zfBXiq-SU(APfAKkTP|Pv^_r5>swYZHt6yzc4O+|`8;D9u+8LLBJ?9*e!yn1nX_v7v#`emcrYOuSs@we5_lny=F_GT?xn`;>vwC?wG!I}Ztw+^)ZGGi`PA)_=0QH+R~>y3ykM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mMRkSj+8KNgsmrXf_ro%{7o!sf8m@`=C>t1qmAuV*h1U4B%b8+l{)W1t0)uo6dVI7 z-*at*;J%{;{5;aYn-g}w5l)JIdB@fK<45%O6L^S3^K&94r0pS`RA;F!6Q|}IblvqM zyI=4O<*qM$z6@58zPQ-k89J`#j}5rcMo%{rnKKVgK!4=JlL3K*WPW6I?q LKz=PhkBIvZA|8oX literal 0 HcmV?d00001 diff --git a/tests/integration/touch/snapshots/stax/test_sign_micheline/signing_successful.png b/tests/integration/touch/snapshots/stax/test_sign_micheline/signing_successful.png new file mode 100644 index 0000000000000000000000000000000000000000..392165d4fc71395ae212fb0ca017ebdd204c126b GIT binary patch literal 6218 zcmeHM`&*J(yLQU2a!Na!nTMHaXO^cXk15JbdFV7c<^fNk)}%%zon z<{*>K&I2N*5hfy^F=9%{m?9}5DG~`GilKri->Pfxe_`+aL+j$=dU@Bo*84nbJ@@_G z>*3~)p&{m9T7PL`Vq$*mXy7RmlP_+Yn5_C^-70X$H>`tfVq&%VSm5`O`M;~gO6L^n4#nF|w+JYcn9%~cd*d1uXJ>Z9Y&FAXa%u_VShIX@o~kVvk% z$CV8Z4oX<~rR5bgbLHpFnyY4(<@+N9DireF&;wcahzezIXE&`$GiuIcQtzJIZDxu5jh7-Xzgk#rWkDF6%55Eak75Y#i!;nLf^i6E7li z8DfOrj^8~<{KWBV18KPm;$Q}SZ`rY$ALYQGsa*8KgqneO(uddWzialH8VX+r%%{aM z<)!jDU48l`Un2RN=hQQIZ|??Hu-WW!ct^FPWl{H;NBQ#2QCGW?T1RYn!)WF-is5xW z>rT?ZV~Ls}&RAaLzfAKOP4{BL)$lM6s}0d)L8edo>rQb7Lp;r_x=spgPE#x_5oq^A zYs-2kr}=^mdM$9m_u}iOSerdD25vqiqtWb%NX1LZX|u@uj)^YXsJGqgC*`&xqmQppR@*PDG4V>ru_*t-s3LMg}3 zwOV`M>N&gXP5nAcqg6>y@eeS0Nrir0P`JmFRMo;#PfriuX0@auX#hcswF_q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{B$W=-YHr40lviOzq`>mE!#WDlsjG%Rn1NV zw0Y;}=R2kjt+m}5k#W$;`{-%Uz2w&QgRG{Y<~JE1PgpDL9>vv|J=coBalf{<7MyLW ze8(Sj?mqazqh1}>{N|gF6@YJl0D45C_HJ4oVaJVLp|AMczAleC+!o1_Q0=E9p`jGq z*=Yxrn!m*|p&@I#L4}W^-(h446w;VySCn@yT-Pc~w+DsWO(YEpLbie$VbtNzb;8f3 j(a(kA{|{wz1GMs(WvgB32{rhSz~op^XkgRfq$~dhBj0hX literal 0 HcmV?d00001 diff --git a/tests/integration/touch/test_sign_micheline.py b/tests/integration/touch/test_sign_micheline.py new file mode 100644 index 000000000..1aa67c383 --- /dev/null +++ b/tests/integration/touch/test_sign_micheline.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python3 +# Copyright 2023 Trilitech + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from utils import ( + tezos_app, + send_payload +) + +# full input: 0502000000080100000001300000 +# full output: Expression {"0";0} + +if __name__ == "__main__": + app = tezos_app(__file__) + + app.assert_home() + + app.send_initialize_msg("8004000011048000002c800006c18000000080000000") + send_payload(app, "800481ff0e0502000000080100000001300000") + + app.review.next() + app.assert_screen("micheline_screen") + + expected_apdu = "c871155802f26f35ea07a15c8002d836a8779ac8cc2feb0141f08831dad0326a0905cd4fc8f00615b7b4a78e7eaf7fcc0b7959e01e3119b6261ebd71d76d580b9000" + app.review_confirm_signing(expected_apdu) + + app.assert_home() + app.quit()