jlguardi / yowsup

The python WhatsApp library
http://www.openwhatsapp.org
GNU General Public License v3.0
42 stars 23 forks source link

yowsup.layers.axolotl.layer:Invalid signature! #71

Open kumarshivam675 opened 8 years ago

kumarshivam675 commented 8 years ago

Whenever I recieve a media message from a group then the code stops working with the following error WARNING:yowsup.layers.axolotl.layer:Invalid signature!

When I restart cli i see the following ERROR:yowsup.layers.axolotl.layer:Received message with old counter: 9, 8 WARNING:yowsup.layers.axolotl.layer:Going to send the delivery receipt myself !

can somebody help?

jlguardi commented 8 years ago

Try my devel branch.

kumarshivam675 commented 8 years ago

@jlguardi devel branch also gives the same error.

kumarshivam675 commented 8 years ago

@jlguardi It is working perfectly fine for private messages. Fails only for group messages.

I think handleEncMessage() function is failing because it is going into the exception rather than the try block

jlguardi commented 8 years ago

I haven't tested group messages too much. Probably you deleted axolotl.db and lost signedPreKey.

Please, try with a new group.

blr246 commented 8 years ago

I'm seeing the same issue with the latest branch (@ca268c453b8449eec627f30e5b90a76a0a50626e).

Images are sent from the CLI to the phone app, but they may not be received in Yowsup when sent from the phone. This test uses a new group.

When I test direct messages between the CLI and the phone, the image messages succeed.

The error here is the same as OP's: WARNING:yowsup.layers.axolotl.layer:Invalid signature!

[connected]:DEBUG:yowsup.layers.logger.layer:rx:
<message participant="1XXXXXXXXXX@s.whatsapp.net" notify="Brandon" from="1XXXXXXXXXX-XXXXXXXXXX@g.us" type="media" id="6F65050AD89E51B33B" t="1461612345">
<enc type="msg" v="2">
3
!3`}�l�q�$�,�� S�}t��;�>J�g"��|꺾dt�v�X�sT�!<�w����S�t��"����r7��-^g��R��P;� zT5�D�_gJ���-����i}�0�K�����O�=�_�c��E.�p�sB�`򱓖�a�v���>8$��{_��
HEX:330a210533607de5b06caf71cb24d12ce07fbbf92053f07d74ee1da23b07ff3e4a8c116710041803228001d87c1205eababe6474c376ad5812f67354c121073cbb0177abd1e1fb539874a0c4228494e7e97237f7bff42d5e67ab9d52bfda50133bfc207a5435b80344a05f05674ae5f7a310a22d178efbd691d31ddb00697d04a630a44b9d91a5a6ca4ff0d288193de65fdc63c40592452e9b70d67342a360f2b193969361a476918ad93e3824a8d47b5fffce
</enc>
<enc type="skmsg" mediatype="image" v="2">
𜫮��r5�JT�c�(&�^F;!��H���-��k�����W�Bq�Kg�d
7�S��t��I�sa��ιG�~Ca{�
�~������i�R�95������{N�1�N�qy�D��ٿ�GR��蟨���<���Tow�}A\s����3�r]?�Ǿj:�5sQ�
                                                                          �[���_6�����+�I��c�j���7x��/�)L�)ٴ�5�WMR&>T�5���vE9f�b7�-�A�|@����*�+q�tc\�(C=ML���<Dh�d'�gH-���;d���*���
���T�J�1.�D
           �޽�CL��imy{: �t��eMqJ�  z�Uʑ�2�o$\�Z�"J�K�_U������O]�65�J<�k�v�pB��ɓS��4�-�>�3�}<�(k    ����A�aMLK�۽?��^;�5@�������n��;� ���N�L�E��g_��}�����2�pmh�;}M���PxaJ WsG^��D���;���[Z]�3�v+e  c�����n��A��C�  �Pg*J��m�c#����d-��m��Ky�']ܷ��*�a>u��m�"8�1�^��xT��������Ji��qg�%xܚ�$�51q�Ț"���Lw�2�d�7�KE�3%�ہ�i�
Z�W=�*��p��l��Б�R����d�H>h�~���c:h�l�v�ךe��                                                                                                            ����Y
                                             �RV�Q�U/�
�5�z",�O��N�%{2��[���;�e�����6m_��j�3U��              K~r6<�ӫ�?�7����dQ�Q2I5St������pˬ
��ak�K�tr�$(�}$�Oe˻8l��7����uUnժRԠ��G�[ݹ��S/w���c�x���,����k*�]Țn�r�����+��,E��v�
                                                                                 9�
                                                                                   �2j4P*)&M d�c��}r��[WZ�%�-B�3^�nH� r����E�)4��z�B�՘goR1wqF����iy�ZR�h$��LPhަ�dHs0sǷa�H�Hr�R�o
�=�J�5�>
4��c`�L��LR��c�JI䙱�s㘶���/���_�T,�ՓxC��J]ֲB���
!Ax�:VT���C�$�T�E"�1��dc���U�13g�xa��.DT�[\^ǒI�|��*����ǟ�\"s!�g5 y  ��B�O�V�|w�ۦN��eL���M���&����+�~lJ������l���j)$�w�y*9���#�����\>@(�шf�K���A^SgM�94�z�|m��/6
��]�F�?�`��Q>�nA�zZ+����6�Q��S�3E��ΰ�+����X4��x?��h���f*���O�d�>�U�d��������(��'�Nĕ�?"գy�iZ���+J۫�%��o��
��h��ԈY��Ǭ���;gM0�[]M� a'*������Ӥt~���
�c=��Pdk�]��r+o����=&ӹ�'m�P��bM��T�27A��-N�^?���[�\ζ�Ju�2#Ȕ���3o�{�Ѹ\6�A.�*���|Kk�ە�JzD`ۚ�yk���`���wO�-&H�����WO>�F/l&=��`�x,�70�SD�W���KdF*ک(��   ��eP��8;[��0m������],�)sE7}E1Z���L�7@d�AM�I�%c��t�zv[�>�|�r���2%���opj��NȘ����P�vB��6`
         �.ž=�9�aNhȗPX%Еj,�(�ˀ�1��&�!��k��Z�
                                              �H��ѿ�4=ՌӒF��-%H#�:�!�ӳ
V�B���#���[�G&Yn\o�G{0���$ܙ���uV�!R�m��~>[)��dz�F`1&�_��V�Gb��"В�6�M�ߠ��?��$&��a 5\!���W(����1b�m��|4u"%"!�
`߫�tpq���߷�5�ד�=9��-��c<Q51�ը-b=Bn��ΚkG�:��(���Dr�!Ir��ui���:C��H�� zo����
�`��oE�8��p6}�N�n��(�U��D��q:LG�y*�~��*8F,�5x�Q�c�֋~�[[�;���4m!σ9�<�?��$!�[fŨE��W��8�_-���m��Ό�
HEX:3308f09cabae0310011af0121e92721235dd4a54ab63812826a7045e46163b21f2ff48b8d0f52de7d36bf31dd515f7cff25788134271ef974b67b4640a378253dee07412e0a41de24917f18573611592b8ceb947e385167e43617ba80b5d8979e9ef28613268314c4938ff66a8dd7e442e27bf3e6b0dcb7ebcbdb7c8dc0fda699152c73935e4dd01b6cff1c57b4ecf31fc4ec47179a044dcffd9bfac4752bcafe89fa8a4eff58c3cb4eaa3c1546f77d27d415c73c205b598f633f7725d133fc5c7be6a3add35735119b71d07020ce418135b90a1865f36d7c603bbb51ced2bb849da1ebd17638e6ab596c63778c1d21f2ff4294ce529d9b4a635fc574d52263e06548a3583e0d9764539669b6237e12dd441c7127c40dde8d7d12ae3a52b71c574635cb528433d4df3084c8518ecf93c61a2575830b161485ccb0db7d9d4022f728dbaa8f3beb543a2883b64cef0f3912a0fa1f4d30d4468a56427c067482dc90a018ac4e454ec4a18e5312eaf0f440cfcdebde1434cbade696d797b3a20c674d8eb654d714ada1d097abe55ca91d832b16f245cad5ad918224a974bab5f55f8ccf584d4c7ed4f5df91f3635e5934a143cfb916b8c76f670429aeb9ec99353e0ec34f82df43e13e2331fbb7d3c1699286b09aa86c09b138f41ee1d01614d4c4beb8cdbbd3ff7f0135e3b86354000abd7ee88cfeefad2026ea2c03bd220c0b5ddf288061f4eeb4cce45c1b4e7675fcfcb7d1beeb5a1cde4dd32bcf3090769742000583fe8b66905f79dd1842860212d9775ed339c8e0d12fa706d68df3b7d4da5dc10885078614a205773475eabfc44fbddd83b86b9855b5a5da733d10e76012b65091163d2e0eb04801cd36ee6e81041b3df4395099c501a05672a4ae2fd6de2966323971084819a1264f9be082dcacb6dd013a44b79f0275ddcb7b1812adc613e75c1a9b16df5223855dd8a08b931f2005ebfa978549916b5a2898f05ccd8ca4a69f7d4cd91716703aa2578dc9ad424c3353171d9c89a22aba4b6024c77ae32d264c607371fde4b45df3325ebdb81ad6991060b859812b99c590d1d5a85573dd0d5082a82fa70da7ffef79b6cbdbad091cf529ce784f7b20584649d483e68da7ee10388ea633a68f792b897176c8e0776ef981ad79a65ddf5950b8917521756fb51ab552f8d0c4b7e72363cc8d3abae3fdd37bcb6e9c3640751cb51324935537419b0b48191bedf7003cbac0d01cd63458923c98e977fdd1bcbd8d1afdb47e089f8aa6240ae23517322711db502b252390fd2be7cc01ee8e95c540d3894eaca2965d8960dfc0235bb7a222c814f98c7174eedb5257b32a7a25be3f51d11d83bf41b466500c0e41aabc4f7366d5fb2936a823355d119fe0ae1c1616bd74bb47472d82428e57d1024ac4f65cbbb38146c9ea037b7f1f7f075556ed5aa52d4a0a0ee47e55bddb9820399532f7714d4e4df638a788288ff2c9e82b9b66b2a0503d05dc89a6eb872ff92a1f008fe10812bf5c62c459fe276a50b39c20cae326a3450da1f7f2a29d408837f264d2064f86389827d729ebd5b575a9125fc2d42df335ef46e48e30972be94eecc45c82934a9f67a01de42d7d598676f52317771194683b9cf0e1af3697914a65a1252e86824898e4c5068dea6c16448733073c7b761b148854872df5204e06f0ac33de44aa335fdaf3e0a3dcaa9acb9bfd9a981a2394c52a9dc63b84a49e499b1f973e398b68e16effa2fef05b6ec5f1b285ee2542cf2d5937843d7ee4a5dd6b242abbc820d34f4d36360cb4c90b40a214178ae3a5654b9d3f343e924da54ed13054522c3319aea17648508639e11a1f58855d2163133671482e104087861bdfc2e4454835b5c075ec7924912ec7cb9e32a018493fffac79f941d5c22732199673520790981fe42a14ff4568b0f7c77fc15dba64ecfc8654cdcc3d80e4d8792b12683e6fb8dc82bb3077e6c4abec5cdaad4e3c617bf6ca7839b6a2924e4775e7f87792a39be128ad32302f9f8e6c0f95c013e40281ccbd18866fd4b95e6d0415e530e674df63934f47ae77c6dd6e62f360ba260fca7108a513ea26e41e67a5a012b8bdef718eebf36de181251a1ff53bc16334580e3ceb09c2ba5128ff1fe5834a193783fb5f49f68e5d3d98c07d713662ac2e5ee4fd364bd3ed7558464b70714bd9cb1efefab1d89bb28b4b427e4b34ec49515c13f22d5a30079c6690f5ac9da11f4b42b4adbabaa2517b3f8a492a96fdfe00d9d9d5df9af4607bf3f0a80e168a9c2d4885910e103d9dd8ac7acaec7ff3b674d308e5b5d4dd22061272a81b18babea2d08fc14d3a4747eb7a1e01b4588633d80d850646bef5d9aaa722b156fbcdbc6d33d26d3b9d5276d1dc650d3f7ba624dedd954fd32374114d6c62d4efd5e3fe5f08cec8f5b845cceb68a4a75d532231fc894f6ef0fa0336f14a77bc1d1b85c3681bb08412ee02a8dff860f7c4b6be3db9582ef081a4a7a4460db9a95796b92acab6083b095774f8f2d2648a6b7ab130512d6ce574f3e8e462f6c1d263d8f9a60b2782cc17fb53730a253448957c5cdeb1d4b64462adaa928b5ba1809a0fe65504408821500e74183247ba4c157c34c8dbde6d55d2cce297345377d45315abd9edf4cdd37401464fc97414dfd1549a62563b2f874f7187a765bad3eb9147c02ed72b7abc197322596d8ee6f706ad4eb4e1e13c898969bd0d850ab764289be36600d383b5bb9c6306d80f90bb42ec29e3df939fc61164e68c89750195825d0956a2ca728a1cb80537fc131b7b1268f192101b8e0056b06cbf75acd0cf948bbb4d1bf99343dd58cd39246bd932d254823e13ad721e8d3b30c2b06d754fc61afb82990c5059874af908f229a7bf60d56fa4205e71db8be231ef4dc01ca055bc34726596e5c6fa51f477b30fe11efaaff24dc99c0f3bd1888751f05560fcd21529e6de3b3c67e3e1d5b29faa7c6c7b38c461a603126e05ff0ea56d24762b9d122d092bc36a14df6dfa0c7f83ffe1b9fb12426f8ef612035075c21b2b3e05728cedd16b8af3162f46da9a17c34751a2225152221e60a1e60dfabf6a4747001719a87bfdfb7b21f3596d793f83d39ecb9d92de905f7633c513531e09288d5a82d623d426e0e91bbce9a05d47f6b47ac3ae1dd289fb49e4472cd21044972960ebe7569f905d1e3923a43faea48b4e4207a6fdb14d11a8db60ba9de23163de757c3c238f95f2dc2d8d86d82f9ce8ca00d9746216060df4fba8a63698193b9567abe63056bac4f4d6a23c45501d95c68ca6a76cf5b4ebc8e27c2ee562b6d47f2f766a5af33c9532c4795948b0debe2af71a3758c9649af2b42b1665e411cb6942d61ee4d997cb5d39dc8692c565bdd33e19554e9e5cbbdce750d9f6087a86f45ae38abc0701b3e367d8e4ea56eabf928ea55ddce44a8c371013a4c47e08f792aed7e9a8e2a38462c9035789751f563dbd68b047ee6895b5b038a3bbd92e8346d21cf8339b63cfc3fb2ad2421845b66c5a80545a703
</enc>
</message>

DEBUG:yowsup.layers.logger.layer:tx:
<receipt to="1XXXXXXXXXX-XXXXXXXXXX@g.us" type="retry" participant="1XXXXXXXXXX@s.whatsapp.net" id="6F65050AD89E51B33B" t="1461612345">
<retry count="1" v="1" t="1461612345" id="6F65050AD89E51B33B">
</retry>
<registration>
��v
HEX:a2f67617
</registration>
</receipt>

DEBUG:yowsup.layers.logger.layer:rx:
<ack type="retry" participant="1XXXXXXXXXX@s.whatsapp.net" from="1XXXXXXXXXX-XXXXXXXXXX@g.us" class="receipt" id="6F65050AD89E51B33B">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<message participant="1XXXXXXXXXX@s.whatsapp.net" notify="Brandon" from="1XXXXXXXXXX-XXXXXXXXXX@g.us" type="media" id="6F65050AD89E51B33B" t="1461612345">
<enc count="1" type="msg" mediatype="image" v="2">
3
+�s��l�q�$�,�� S�}t��;�>J�g"�6�ZW��h�b[���A��,�iD��f��W��3��2'd����I�(�L�U���M߀M�<����!
    2 �1�hD9��@�Xz�ʑ�~�|EMj���0V����^�X�����_U����k�_h�G<fM 5�o�W�~4���#
                                                                            �I�Ѥ��7��
                                                                                     R��ɐ�����0���c^�o��
`F7����Krr8��                                                                                           ��Oo8
u��q6���(穃��a����q�-�����19�B���p���k��3��Uw@���;�5�Ʃ����Y,U�o(�hT��;ډ�n�}��`G�4u��].��H�&-�<��N嗜���j�G#C��j�by�Hqœ
                                                                                                                       �*ogC�׃�G?��  �.�k+*��'���)zGI��K�ԁ��l˚�rB�L(��}Fq�[W���Nz�O�#��L]���\<��ѯ�DF��RB�t�wПH�<7E�`�  :H��AN��:���d焔��p�m{��;^
�S8�5��
       �H��|p�X����~8J2��
                         9�]�p��wF۷u?B�.���i2�ghiV��iuXxۘv��Aˤ՜H�Q�����Nʺy��1h���{/}Ðr��T?%7
                                                                                           *0��t:�m�!��%K���#a:]Z�7 �?��Uy�m8��(E5װ$TyhY�Z��7:�o�ɂ��o��|lhD���9�>q�{W���iN�:UE]�ޘ�\�����D�C������7�X�Y�I��֋X�S�&�u�A?��˜��@�P���)��+�$f��60��.�L���Q�LQ#�vϽ�R>� Ce]��;��������ޝ|�co9�'P�&���Ѿ;[6�P�4�W��}�`é�3j5�˟AYP���\��n���xs���r�%Ӊ�!�[Q4�d�r��-�S���%�!R6����S�h��s�փb�oI��R�_f�i\)�&�&���)��\��c�?��c� S
|�s�W�[���g�<0;J��5����e-�y�z���~�f��I��z��S�q���_;-���n�]i��u�FN��[f�9W��Ѕ��k( ��7�MC1ەeo?�k1��!��[���
                                                   =s�Q�(�\���:Y�/�tLԭ��x��p97ʡ��x�?��9ˠ7mC���X>����*���x�,u��i�U
                                                                                                                 �5sS�P�S����g��"�QC5�e3���}��$�}��!�]����'
��:0BwO�Rw�X*=�?lO���i�M��DHh=܊B��/�����a
(��QIJ�>u�uf7i�2�U���o0�ӡ��B����Il&U?���4tOP�?�Xs�����|o軋����ߠ5��# ,�C;�Q�ךFo5�S���y�Ǎذ����3/��B.��p(�z��~�.�u�=e��#'dS�t
                                                                                                                         >���fA{��yt�]���6�6Z�Xƶq[lG�Q31���  ���^n��   8H�r[='0ۃ��|��x��� /�Y   $�h[�I���$�ù{���ϏB*�!Y������L'{NaX�$�΁P'�N-m
{0�˳e6/IT�%[�+Jk�V&�*�t���^M�Q!���W�TRY�3G�U,A����p0P
zX~���ڽf�*�߽���9���^�W�x��S륗�d����tO��}a:I6�ĉ�����l&�~/��bf�$��O�vc�)�-�REc
��~R�3)??��v
��P��l(�X]��A�3qQ����,�)V��e��)���)�fͩ��V�w��O7�w
                                                  @x.�]�d���b�>ꍍs�du�D���f�%��Ow�gZ��~��    *6������ŰH�
                                                                                                           .ĕ�@��t&2�]�g��n�U3 `ĨG��٥)�(N��α�Y���o&R����]���`N���s�Ө�mz�����M�<�`��C}8��|P��D���;⵺�Y���e�V�”6z�YOz
��t�6y���8��Xe�Qn���ʣ�m
��
���#1S!�U���v�5d�4�=�*�TF������x$��{�ѝ�C���6�ѝ
���ڤ�Eպ!�D�Tz�c^]�&,��R2�L��#�    �v�1�y��!���b?s�ͽAxG
HEX:330a210533607de5b06caf71cb24d12ce07fbbf92053f07d74ee1da23b07ff3e4a8c11671005180322d01336925a57b2f3a26886625bbdb5138541c0b8f62c8f6944b0ae66c4ce57bfc33384d632276404f2e0fd03e849f828e04c008655121081a8934ddf804dbc3c9d9afff392b7210d2bf0859f9873b10c3220f3bf217f3119e268440e39d07fbada1740e704581a7ae2ca91eb8c7eb37c454d35086aabbcd99e8d3056b3b5ded35e9258e11d058cf6c4e15f558ccee0c46baf5f680ea7473c664d20358e6fdc57c97e340ee7bdd6f6230be949ffd1a41d9a9a37b2ca130b52d0e4c990c71b5ce9f6a2e3d63014aacbb81808c0c08b635ed86f9fce0babc44f6f380d1baf10604637febca3b94b1e0f727238bfa50a4e32f91da72e0e52f12d7628d55f285903041feaed57ffc32a275bd2b3ad6d76650e5ac8d229920d759fab71368118ad831c28e7a9831bae8eb1618693fec371bf2d89fee4dcb3d1e23139a042babf9a70a1d3dd4c7f6bcee033bbe555774000891f9dc73bc53586c6a9b0d69ea8fcc1592c55fa6f28a9680054e9c63bda89a06ee37dacbd6047e534758fa65d102ea4be48f6261f2dc13c96824ee5979c811ff8eda96ad7472343058bf96aea62799b4871c5930caa2a6f18671043a1d783c8473f8dbc1c09c62ea56b2b2a82bd27c7dfd1297a47499706bf4bc6d481f3ac1795176ccb9a9c037242e28b4c28f1f2987d4671bb075b5780e31904d64e7acd4f9523c2df4c5db9fac65c3ce60398d1afb14446d0ce524281749077d09f48ac3c371bf545cf1260a4093a48f5df414eaecd3ad5de19846410e78494bde201701d976d7bbe953b5e0abc5338cb35acd90bdc4899c17c70df1858c1f3c1f47e03384a32ddd40b39a55dfe70f8fe7746dbb7753f42f72e97a19669329267686956ed95f069755878db9876abaf4102cba4d59c489551a9cdd9e2fc4ecaba79cdfc3168fd8ddbec7b2f7dc39072c7dd543f25370b2a1330f7ec743aed6dd8219fe8254b9b8311e8b523613a5d105ae43720b03ffa6f7fed5579db186d38cbd2284535d7b024115479681e598c5aff8b373ab96ff3c982b8d66f8cb17c6c684482f0e639a63e71df7b57119f91ee694eb03a55455de2de98d408da5ca9ddfe95c64416af43bad21d8da41382ed378d58c859c149facbd68b58ce53990e26f90675dd413fda06cf1ccb9ce3a6f0bb40fb50b88aa429fbf22be324669cd2363094c82ed74c9a89d451f4054c5123da76cfbd85523ecf15204365025d98851d3b9d9df81c1b9697f207b4c6cede9d7c8a05636f39a82750de2686e1e3d1be3b5b0036ab50bd34cf1f5707bac87dba60c3a9a733f0086a35d8cb9f415950b01982975cd3472c89aa59eb91646a7b5d86f893ebb6a0d17466cc58048896f754badea75b4e033846d952326a9f5c82f6c0b9e793bea32e3e9745558f394925b4bfe772a4f92fed9be3a9dd4691333adc511401f13869e8abf829ce19975c8ac3639b3fddec63e709530d33d423c9f507be4480005fba545c1a5e1b18c3e78a98c1ca2919be5ca4124375c52eafdb5390a7b4c4a2d774a18f6b5c5d97fa3c44710667f175042dd9a9ed1422e59cadea8f686bfdd5fa0d90fece3b5f87c18edfac34a9bdd5e97c63980ecc63e7d8d56578c8f08d921899892d0925b4215236fcedf2d853b468a88a7383d68362e46f499d91529c5f669869155c299526e426af0d1ee1ad6ef3edc07873a7afde729625d389c40608c321f65b105134eb64c272a508ae0b30e103941c8b73e8026b8d199bef3a30b7a9d6bde0eb628128d9bcbe6c587375735f3b2ddfc31905e5a16eba5d0669f8eeb275f2464e8aa55b66d23957d2d1d085f6c56b2820939b37e2af154d4331db95656f123f0fbc6b31a0f8a2218116f6995b8ab8d60d7cb57386d2881657c45be015b7b367f5823c30133b4aa1b035bf98800f82658f7f2ddf79fe7a86981eb67e8d6695a34998d57a899453aa71d3dfcc0b3d73ad1451b228cd5c06bab5863a0359ff2f93744cd4ad89ec78ade985703937caa19bd678ea3f889239cba0376d43adc0f0583ecb15a09bdc2aee14b4b178c12c7584de699e550bf2bd9a357353c250d2531787a7ab8a67b9c9229651430335aa653307f3e5c87d899824a87d9c11fa21bb5da4a4eccf270aab79c932e22c56e4882f3bb33d7b1f72b83f6c4f1fe793dbf399698c4dbebb444814683ddc8a42e9e12fad04aba6a0d910610ddfef3a113016420e774fce5277d00f582a3def0c88493e5be649f0951da512e37a00d9e5dc2dc61c5cf39168ce72b521db62ef40b2e00d28121cb3fa51c4b2913e75a275663769b4329d55aaa3c46f30b808f1d3a1b99842b5c11085ab496c26553fe08bfce734744f5015803fa715587392d4e08b98cee87c036fe8bb8b88b0bcf5dfa035febf23202cf4433b8051d1d79a46076f358153b2f9ca79d4c78dd8b09ca49ec4332fd81daf422e98837028d77aece17ed32ee575d03d6585ed2327645390740c3ecf0f93fdb066417bdbc47974c35df3c7c936d5361e035a9d1f58c6b6715b6c4789513331a2f4e209ba8ad15e6e89c309384890721c5b3d2730db83e9e37cc8cf781c07ebe2aadb092fa05909241695685bfc49d1f804d80124487f9ac3b97bafc1d69e1fffcf8f422abc2159a41f12fb15a711a087c14c277b4e6158d224a6ce815027e24e052d6d0a7b30c9cbb3650f36072f4954fa255b802b4a1b916b875626e32af874a3aef1b75e154d925121bab7905798545259e2334792552c411fa6bcdfd105037030501b90140b666b9118e0fa5e490d7a587ef6f304d3dabd6600e22ab7dfbdcdf50702e43989c9f85ed15719ce7886a253eba597f1b56492a1b0a3744fb99e7d613a49369ec489a9a1ecd0ff6c1a26fa7e2fc1de6266b9248dc24fe97663bd29e42d855245630af2f59f7e528133293f3fdfd311760c43d3b4cfda107c0715ded7059fcf2c13e4a129f81be7d385140dc1da50c7f86c28db585da4bedb9641fe3371510956e5ed65dee30229a2f6d004181a29ca66cda9fbe456357fdc1877000fcceb4f37d3770c40782eecb65d9b10641d0293eff99162923eea8d8d021673c06475ac44e4dddd66d12589e3174f77f983675ac2fd7e859b092a3611e11e03ad808aaea6c5b01d48b20c0e2ec495e94093c0b8741926329b5d04f367ffe76ed555332060c4a847981ccad9a5299b284ea0abceb1df1f598ad1cb6f2652fd0683e5fb125d8fbaa6604e10d61485d473ee1b55d3a8976d7a13fc1cf3b3ca1ef40ea44def3cba60eaf2437d38bc817c50fcf444f8787f8bb73be2b5baa759d4c6ec659456ea9fc294367afa594f7a0ace17c174853679e99ee49cd53880f9b95865e51c516eebfaeecaa307c66d0afb05bf0c270d1818fa810197a123315321eaa9088c5590a1de76d53564f334c73d952afa544619f1d21eddf2fcdc782495c17befb8d19deebf18438fe9eb36f9d19d0b578353c1786e08470d1780bcc2daa401bf45d5ba21c84411b6547aa4635e5dbc26102ca5c2523216a04c8d9223b1099c76cd31e08979d1ec21c0a19784623f73cfcdbd41
</enc>
</message>
blr246 commented 8 years ago

I reviewed the code of chat-api in comparison to yowsup. While there are differences having to do with unpacking code that occurs after an skmsg is decrypted, both are using the same method to split the message and signature, and both are calling the same Curve library code used in the WhisperSystems implementation and public repo.

It's still possible that the incorrect key pair is being selected by senderKeyState.getSigningKeyPublic(). I read a little bit about the encryption protocol. There should be a key pair between each pair of group members. I saved out some of the binary message payloads and the keys returned by the SenderKeyStore. The public key matched when decrypting a text payload versus an image for the same (sender, group) pair. I think this is expected behavior, so I'm not sure why the signature verification failed.

jbollacke commented 8 years ago

@blr246 So chat-api still receives (and decrypts) encrypted media messages in groups? Did you compare public key of text message and media message decryption in chat-api aswell?

blr246 commented 8 years ago

@jbollacke I did not compare to chat-api. It's probable that it doesn't work there, either. The maintainer of chat-api is holding off on a major release supporting WA 2.0. So, there's not much incentive to fix issues with WA 1.6 support.