Commit graph

80 commits

Author SHA1 Message Date
Morgan Pretty 4f3900771e More work on getting SOGS V4 integrated
Updated the MessageSendJob to support V4 messages (V2 messages will be upgraded to V4 if they get re-encoded)
Renamed the Message+Destination from 'openGroup' & 'openGroupV2' to 'legacyOpenGroup' and 'openGroup'
Started plugging in more of the V4 APIs
Renamed a number of the V2 APIs to start with 'legacy'
2022-02-11 16:48:16 +11:00
Morgan Pretty 2284375fc0 Started work on updated SOGS support
Split the OpenGroupAPIV2 into separate files
Started working on the new auth and blinded-id approaches (new auth working with un-blinded id suggesting blinded-id code is incorrect)
Updated the SOGS request/response types to use Codable
Updated the SOGS Request type to use enums instead of strings for keys (to reduce likelihood of typos breaking things)
Updated SessionMessagingKit to use Codable and JSONEncoder/JSONDecoder instead of the legacy JSONSerialization
Cleaned up some naming conventions in the SessionMessagingKit (calling a URLRequest body 'parameters' is very confusing...)
Removed the custom TSRequest class (just using standard URLRequest everywhere instead)
Added a number of extension functions to enable some more functional-coding styles
Added extensions to Sodium methods to allow scalar multiplication and the ability to hash providing a salt and a personalisation value (both needed for new SOGS auth)
Fixed an issue where the legacy auth for SOGS could crash due to threading issues (multiple threads accessing the same variable)
Fixed an issue where if you were in two rooms in a single SOGS and deleted one of them, the other room would stop getting updates as the server public key was getting removed
2022-02-10 11:17:41 +11:00
Morgan Pretty 394b0646a3 Updated the code to support additional session id prefixes 2022-02-08 16:37:01 +11:00
Morgan Pretty 03fb5cbeeb Cleanup and tweaks
Fixed some compilation issues.
Removed an unused dependency.
Cleaned up the Podfile to minimise duplication.
Pointed at an oxen fork of SignalCoreKit instead of a personal one.
2022-01-25 12:05:45 +11:00
Ryan Zhao 5f6da0739e delete message on storage server 2021-08-03 10:26:18 +10:00
Ryan Zhao e8f0d0d124 WIP: delete from storage server 2021-08-02 17:07:29 +10:00
Ryan Zhao c68350f3d8 store hash value for outgoing messages 2021-08-02 14:49:34 +10:00
Niels Andriesse 1a237557ff Add documentation 2021-07-29 10:19:24 +10:00
Niels Andriesse 140f07df96 Disable authenticated retrieval for now 2021-07-27 10:38:58 +10:00
Niels Andriesse 2360af5993 Implement authenticated message retrieval 2021-07-26 09:50:40 +10:00
Niels Andriesse 81820c0013 Remove unnecessary check 2021-07-23 14:10:44 +10:00
Niels Andriesse 8a29469eb5 Handle incorrect clock setting 2021-07-23 13:42:13 +10:00
Niels Andriesse 41fe33525c Don't unnecessarily open sync transactions 2021-07-22 13:07:51 +10:00
Niels Andriesse 498f5a73b0 Don't unnecessarily open sync transactions 2021-07-22 12:59:31 +10:00
Niels Andriesse e84fc1aa04 Include destination info in error messages 2021-07-15 09:47:03 +10:00
Niels Andriesse bea80c67b3 Make error more descriptive 2021-07-13 09:50:09 +10:00
Niels Andriesse ef2eab7e9f Implement SnodeAPI.clearAllData() 2021-07-12 13:22:35 +10:00
Niels Andriesse a774d5f004 Re-use existing build paths promise if possible 2021-07-09 16:19:27 +10:00
nielsandriesse 1b68c109ee Fix build 2021-05-12 10:33:02 +10:00
nielsandriesse 5c699d6bb7 Fix inverted operation 2021-05-12 09:23:19 +10:00
nielsandriesse b694777a71 Fix snode pool updating bug 2021-05-12 09:13:53 +10:00
Niels Andriesse e93af07b61 Fix ONS 2021-05-03 10:29:08 +10:00
Niels Andriesse 371222098b Fix snode pool updating bug 2021-05-03 09:08:50 +10:00
Niels Andriesse be382a6031 Add fix for temporary path building issue 2021-05-03 08:35:15 +10:00
Niels Andriesse e9df213bfe Put feature flags in one place 2021-04-27 08:53:18 +10:00
Niels Andriesse 1561b9436f Fix missing query parameters 2021-04-22 16:12:13 +10:00
nielsandriesse 583f5e3483 Clean 2021-04-21 11:32:28 +10:00
nielsandriesse fec4bfb836 Debug 2021-04-21 11:30:59 +10:00
Niels Andriesse 66181baf2b Debug 2021-04-20 16:43:02 +10:00
Niels Andriesse d39387bf01 Debug 2021-04-20 16:10:27 +10:00
Niels Andriesse 2f67073a5a Implement new snode pool updating method 2021-04-20 15:21:28 +10:00
Niels Andriesse 8aa25af4d5 Rework things in advance of new snode pool updating method 2021-04-20 14:58:29 +10:00
Niels Andriesse 1002cc51ae Remove PoW too low error code handling 2021-04-20 14:28:07 +10:00
Niels Andriesse 727dccfbb7 Remove PoW too low error code handling 2021-04-20 14:23:32 +10:00
Niels Andriesse 2feae0dea4 Debug 2021-04-20 11:18:02 +10:00
Niels Andriesse 8375b598ad Don't hardcode scheme and port 2021-04-20 11:13:55 +10:00
Niels Andriesse fac376bf55 Use HTTP for default session open group server 2021-04-20 09:40:25 +10:00
nielsandriesse 8433c2d4ab Remove debug code 2021-04-14 15:49:08 +10:00
nielsandriesse a76c43973f Increase TTL & remove PoW 2021-04-14 15:46:40 +10:00
Niels Andriesse 89b96447e1
Merge pull request #378 from oxen-io/tls
Self-Signed Seed Node Certificates
2021-04-07 13:24:20 +10:00
nielsandriesse 75f5591fe0 Store certificates in DER format 2021-04-07 09:26:27 +10:00
Niels Andriesse 58748471a4 Set up skeleton code 2021-04-01 15:27:44 +11:00
Ryan ZHAO 4fd34005dc fix opening transactions in filter. 2021-04-01 13:23:21 +11:00
Niels Andriesse 34bbff1ab4 Implement OpenGroupAPIV2 2021-03-24 10:54:38 +11:00
nielsandriesse 66d46f3dd0 Debug 2021-03-03 14:10:54 +11:00
Niels Andriesse 4958d3d368 Implement ONS API 2021-03-03 11:16:34 +11:00
Niels Andriesse cf07fc1b1a Implement nicknames 2021-03-01 13:15:54 +11:00
Niels Andriesse 8477f75426 Fix unnecessary path rebuilding 2021-02-08 10:21:02 +11:00
Niels Andriesse 647bdb0d10 Fix error copy 2021-01-28 15:03:45 +11:00
Niels Andriesse ee1d4b1bd5 Debug & make UI clearer 2021-01-06 10:37:26 +11:00