Commit Graph

75 Commits (dcfc97713b7e4b1095c47140c426d7a3c5562cb4)

Author SHA1 Message Date
sachaaaaa adfb4ab371 work with session reset 6 years ago
sachaaaaa 1238cbc4e6 Send profile along with friend request accept message 6 years ago
Mikunj 9b71e8119e Added error catching. 6 years ago
Mikunj f21d1f65e6 Let OS select random open port. 6 years ago
Mikunj 8c9b1a7a7a Added loki server.
Added test.
6 years ago
Mikunj e08a63d078 Merge development into lint 6 years ago
Beaudan 714a5ab8b1 Update consolidateLists function to take a selector function and updated tests 6 years ago
Mikunj 6bd2d3962e Linted files 6 years ago
sachaaaaa 7f78409f43 add TTL variation in pow metrics 6 years ago
Mikunj 4de69bee4b Reduced PoW difficulty to 100 on production. 6 years ago
Mikunj 4d1f4fcb4f Moved loki_protocol_store.js into libloki/storage.js 6 years ago
Mikunj 4eda13733a Cleanup tests.
Moved service_node_test to assert to keep consistency.
6 years ago
Mikunj f9147663d5 Updated tests.
Removed libloki-protocol.
6 years ago
Mikunj 070d18b514 Updated function calls. 6 years ago
Mikunj 982f10a505 Split libloki logic.
Added to gruntfile.
6 years ago
sachaaaaa 4b4a2b1bf2
Merge pull request #122 from sachaaaaa/consolidateLists
Add logic to consolidate list of data returned by different snodes
6 years ago
sachaaaaa 583a10628a run service_node in the browser instead of as a nodejs module 6 years ago
sachaaaaa 61145b6e99 rename listSize to numLists in service_nodes.js 6 years ago
sachaaaaa 8c01bea913 variables name consistency and remove superfluous initialisation 6 years ago
sachaaaaa 1274beb510 Add consolidateLists function with unit tests 6 years ago
sachaaaaa e3138f8fde add yarn pow-metrics 6 years ago
Beaudan 6113f13d3a Rip the worker logic out of message_receiver and add the functionality for it to work with pow. Fix pow tests to work with those changes 6 years ago
Mikunj 0491ceacf1 Added seed dialog.
Fixed issue where incorrect language was used to generate seed.
7 years ago
sachaaaaa 8b32583b79 fix loki test 7 years ago
Beaudan f6ab6495ae Updated the nonce trials variables to be constants for production and development 7 years ago
Beaudan a0584a68c9 Review suggested test case 7 years ago
sachaaaaa 5084d8cfec Update libloki/test/libloki-protocol_test.js
Co-Authored-By: BeaudanBrown <beau@loki.network>
7 years ago
sachaaaaa 1bc1213705 Update libloki/test/libloki-protocol_test.js
Co-Authored-By: BeaudanBrown <beau@loki.network>
7 years ago
Beaudan 7782c58d14 Slight refactor of PoW file to make easier to test plus some tests for the PoW functionality 7 years ago
Beaudan 11883cb989 Cleaner separation of loki tests 7 years ago
Beaudan be878f00a4 Updated names of some test functions. Added yarn commands to view output of different tests. Added a test and updated existing test to use more efficient asserts 7 years ago
Beaudan a676459229 Added test for returning the correct prekeybundle after creating a contact, updated the in memory store to reflect how sasha updated the actual store a while ago 7 years ago
Beaudan c93aff7ebe Setup grunt/yarn etc for loki tests plus wrote first 2 simple libloki-protocol tests 7 years ago
sachaaaaa d8f4d1f313 Fixes to get production build working 7 years ago
sachaaaaa 05c18d42db
Merge pull request #66 from sachaaaaa/session_reset
Handle session reset, Loki style
7 years ago
Beaudan Campbell-Brown c0ee584a2c
Update libloki/libloki-protocol.js
Co-Authored-By: sachaaaaa <40749766+sachaaaaa@users.noreply.github.com>
7 years ago
Beaudan 1e3886cca8 More consistent naming of key storage functions, moved some loki messenger only functions into new file 7 years ago
sachaaaaa 7e612700f7 Handle session reset, Loki style 7 years ago
Beaudan 35c89ea4d9 Big refactor, prekeybundle moved back to a content message 7 years ago
Beaudan b515fc41e7 Removed some repetetive logs, made the polling time a variable and lower the polling time and PoW difficulty if we are in debug mode 7 years ago
Beaudan b65d6a6d2c Refactor friend request status to use a state enum variable 7 years ago
Mikunj 9fd822a7e3 Remove preKeys on friend request decline. 7 years ago
Mikunj 0dabce9e28 Remove preKeyBundle from message.
Always save preKeyBundles if we receive them.
Always override preKeys when saving.
7 years ago
Mikunj 4bb93e6e3c rename sendEmptyMessageWithPreKeys to sendFriendRequestAccepted. 7 years ago
Mikunj dba6a36e83 removed old unused code. 7 years ago
Mikunj 75219966a7 Fixed preKeyBundle decryption. 7 years ago
sachaaaaa 38d5b6e833 fix log.notice in libloki-protocol.js 7 years ago
Beaudan 3aa135fdb4 Grabbing last hash from server response. only requesting messages after the lasthash. Keeping track of lasthash for array of nodes (currently hardcoded for one) 7 years ago
sachaaaaa ad1cf94526 ES2015 classes for LokiServer and FallBackSessionCipher 7 years ago
sachaaaaa c605fff58d change FRIEND_REQUEST value to prevent clash with upstream 7 years ago