{"action":"created","issue":{"url":"https://api.github.com/repos/sigalor/whatsapp-web-reveng/issues/134","repository_url":"https://api.github.com/repos/sigalor/whatsapp-web-reveng","labels_url":"https://api.github.com/repos/sigalor/whatsapp-web-reveng/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/sigalor/whatsapp-web-reveng/issues/134/comments","events_url":"https://api.github.com/repos/sigalor/whatsapp-web-reveng/issues/134/events","html_url":"https://github.com/sigalor/whatsapp-web-reveng/issues/134","id":367066813,"node_id":"MDU6SXNzdWUzNjcwNjY4MTM=","number":134,"title":"Issue in restoring login credentials","user":{"login":"Abhisheksnair","id":41623090,"node_id":"MDQ6VXNlcjQxNjIzMDkw","avatar_url":"https://avatars1.githubusercontent.com/u/41623090?v=4","gravatar_id":"","url":"https://api.github.com/users/Abhisheksnair","html_url":"https://github.com/Abhisheksnair","followers_url":"https://api.github.com/users/Abhisheksnair/followers","following_url":"https://api.github.com/users/Abhisheksnair/following{/other_user}","gists_url":"https://api.github.com/users/Abhisheksnair/gists{/gist_id}","starred_url":"https://api.github.com/users/Abhisheksnair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abhisheksnair/subscriptions","organizations_url":"https://api.github.com/users/Abhisheksnair/orgs","repos_url":"https://api.github.com/users/Abhisheksnair/repos","events_url":"https://api.github.com/users/Abhisheksnair/events{/privacy}","received_events_url":"https://api.github.com/users/Abhisheksnair/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-05T05:38:18Z","updated_at":"2018-10-05T09:39:41Z","closed_at":null,"author_association":"NONE","body":"I am able to restore the login credentials, but unable to restore private key properly. Can some one please look into it\r\n\r\n```\r\n\t\t\t\t\t\t\t# self.connInfo[\"secret\"] = base64.b64decode(jsonObj[1][\"secret\"]);\r\n\t\t\t\t\t\t\t# print(\"sadfasdf\"+self.connInfo[\"secret\"] )\r\n\t\t\t\t\t\t\t# filehandler = open(\"secret\",\"wb\")\r\n\t\t\t\t\t\t\t# pickle.dump(jsonObj[1][\"secret\"] ,filehandler)\r\n\t\t\t\t\t\t\t# filehandler = open(\"privateKey\",\"wb\")\r\n\t\t\t\t\t\t\t# pickle.dump(self.loginInfo[\"privateKey\"],filehandler)\r\n\t\t\t\t\t\t\tfilehandler = open(\"secret\",'r')\r\n\t\t\t\t\t\t\ttemp = pickle.load(filehandler)\r\n\t\t\t\t\t\t\tself.connInfo[\"secret\"]=temp\r\n\t\t\t\t\t\t\tfilehandler = open(\"privateKey\",'r')\r\n\t\t\t\t\t\t\ttemp = pickle.load(filehandler)\r\n\t\t\t\t\t\t\tself.loginInfo[\"privateKey\"]=temp\r\n\t\t\t\t\t\t\tself.connInfo[\"sharedSecret\"] = self.loginInfo[\"privateKey\"].get_shared_key(curve25519.Public(self.connInfo[\"secret\"][:32]), lambda a: a);\r\n```\r\n\r\n> Traceback (most recent call last):\r\n>   File \"/home/abhishek/projects/ipac_sma/wa_tracker/whatsapp.py\", line 218, in onMessage\r\n>     self.connInfo[\"sharedSecret\"] = self.loginInfo[\"privateKey\"].get_shared_key(curve25519.Public(self.connInfo[\"secret\"][:32]), lambda a: a);\r\n>   File \"/home/abhishek/.local/lib/python2.7/site-packages/curve25519/keys.py\", line 41, in __init__\r\n>     assert isinstance(public, bytes)\r\n> AssertionError\r\n> "},"comment":{"url":"https://api.github.com/repos/sigalor/whatsapp-web-reveng/issues/comments/427305295","html_url":"https://github.com/sigalor/whatsapp-web-reveng/issues/134#issuecomment-427305295","issue_url":"https://api.github.com/repos/sigalor/whatsapp-web-reveng/issues/134","id":427305295,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzMwNTI5NQ==","user":{"login":"Abhisheksnair","id":41623090,"node_id":"MDQ6VXNlcjQxNjIzMDkw","avatar_url":"https://avatars1.githubusercontent.com/u/41623090?v=4","gravatar_id":"","url":"https://api.github.com/users/Abhisheksnair","html_url":"https://github.com/Abhisheksnair","followers_url":"https://api.github.com/users/Abhisheksnair/followers","following_url":"https://api.github.com/users/Abhisheksnair/following{/other_user}","gists_url":"https://api.github.com/users/Abhisheksnair/gists{/gist_id}","starred_url":"https://api.github.com/users/Abhisheksnair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abhisheksnair/subscriptions","organizations_url":"https://api.github.com/users/Abhisheksnair/orgs","repos_url":"https://api.github.com/users/Abhisheksnair/repos","events_url":"https://api.github.com/users/Abhisheksnair/events{/privacy}","received_events_url":"https://api.github.com/users/Abhisheksnair/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T09:39:41Z","updated_at":"2018-10-05T09:39:41Z","author_association":"NONE","body":"Thanks"}}
{"actor":{"display_login":"Abhisheksnair"}}