Commit Graph

64 Commits (Voter-Registry)

Author SHA1 Message Date
Vladimir Eliezer Tokarev 53fc701444 Merge branch 'master' of http://cs.idc.ac.il/rhodecode/meerkat/meerkat-java into Voter-Registry 2016-04-15 02:45:35 -07:00
Tal Moran d2373c09f2 Merge with master 2016-04-11 20:14:18 +03:00
Tal Moran 1ec02173e7 package renaming and protobuf moves 2016-04-11 19:48:36 +03:00
Arbel Deutsch Peled edfd47a98d Fixed H2 test time (by using a connection pool)
Added same fix to MySQL
Fixed and tested H2 SyncQuery
2016-04-11 14:13:26 +03:00
tzlil.gon d0951f8644 stop 2016-04-08 21:48:08 +03:00
Tal Moran 4f608e813d Code review comments and channges 2016-04-05 15:36:00 +03:00
Vladimir Eliezer Tokarev 1bf5861808 Merge branch 'master' into Voter-Registry 2016-04-01 00:26:29 -07:00
Arbel Deutsch Peled e56312d38b Local Client supports subsrciptions 2016-03-22 10:16:46 +02:00
Arbel Deutsch Peled a7699086d8 Local Client for testing (without subscription yet)
Partial implementation of subscriptions.
Some bug fixes.
2016-03-21 20:32:57 +02:00
Vladimir Eliezer Tokarev fea0e8880f changed the files according to the new futureInterface. 2016-03-04 05:43:43 -08:00
Vladimir Eliezer Tokarev 843d50c276 changed the files according to the new futureInterface. 2016-03-04 05:36:48 -08:00
Vladimir Eliezer Tokarev 5c4b5a2150 mereging with master for getting the new timestamp uasge 2016-03-04 04:56:14 -08:00
Arbel Deutsch Peled 1cf14a60a8 Bulletin Board Client support for streaming and Timestamps
Created standard Checksum interface and implementation for Sync Query mechanism
Added the Timestamp into the Batch Digest and Signature logic
2016-03-01 13:56:18 +02:00
Arbel Deutsch Peled 71191e05b9 Added Sync Query tests on Bulletin Board Server 2016-02-29 08:36:35 +02:00
Vladimir Eliezer Tokarev 87420a9d7d Removed the voterRegistryMessage and swaped the usage of it to BulletinBoardMessage 2016-02-27 03:48:51 -08:00
Vladimir Eliezer Tokarev 5169c935bf Changed the usage of timestamp to miliseconds and removed the aqurate timestamp 2016-02-27 03:00:14 -08:00
Vladimir Eliezer Tokarev 097aad4e7b Changed the enumartion of RegistryTags to abstract class with static final strings as tags 2016-02-27 01:27:19 -08:00
Vladimir Eliezer Tokarev 64a9356dc2 Change part of the code (java 8 usage) for gralde to be able to run the test and not fail. 2016-02-26 05:52:03 -08:00
Vladimir Eliezer Tokarev c8e747285c Added the verefication process to the receiving of messages from voter registry 2016-02-26 04:54:39 -08:00
Vladimir Eliezer Tokarev 16a3102ca4 Replaced part of the files according to Arbel Peled CR and remove unnessesry files 2016-02-25 21:56:46 -08:00
Arbel Deutsch Peled aeb7c13436 Made read operations stream the results.
Removed dependency on large Protobufs (BulletinBoardMessageList and BatchDataList).
Partial implementation of Sync Query.
Current version supports only H2 and MySQL (no SQLite support).
2016-02-22 08:04:01 +02:00
Arbel Deutsch Peled 9a78330e29 Working Integration test for Threaded BB Client supporting Batches.
Haven't tested subscriptions yet.
2016-02-16 22:33:52 +02:00
Vladimir Eliezer Tokarev 414452db84 Added The protobufs file and its java representation Those protobufs are representing the messages that the registry will use when communicating with the bulletin-board
Summary:
D:/Work/Wombat Working/voter-registry/comment-info.txt

Changed the location of the protobufs file The location have been changed to create order in the packages

Changed the location of the  ProtobufsMessages file so that the Registry file could use it freely

Changed the location of the Protobufs file and added the Registry class The protobufs files location was changed for the right location of the packages for Registry class be able to use the protobufs files

Changed the location of the ProtobufsMessages file for creating more organized project

Created the SimpleRegistry file SimpleRegistry expose the ability of manging voters information (their groups, and personal data)

Created RegistryTagTypes file this file have the different tags for registry messages

Changed the SimpleRegistry file started to implement the different methods of this class (such as created basic messages)

Changed the ProtobufMessages file now using only the basic registry messages

Changed the SimpleRegistry file Managed to create the signatory and add empty builder

Added the AccurateTimestamp file This file converts string timestamp to timestamp and the other way , its used for the SimpleRegistry tags

Moved the AccurateTimeStamp and the RegistryTagTypes to package called util This way the project files are more organized

Add the MessagesUtil file This file contain helpfull methods for working with messages (such as basicMessage and BulletinBoardMessage)

Created VoterRegistryMessage VoterRegistryMessage extending the abilities of the basic message also changed the name of  MessagesUtils  to CollectionMessagesUtils because its suits more this class destination

Changed the simpleRegistry file Edited the GetPersonIDDetails method , and refactored the basic methods of upload data to BulletinBoardServer

Added the SimpleRegistryTest This object tests the simple registry functionality

Added the SimpleRegistryTest This object tests the simple registry functionality

Changed the RegistryTagsType to RegistryTags The Name RegistryTags more indicative

Added The Wombat Code And Documentation This file describes the conventions of the wombat project

Changed the SimpleRegistry and VoterRegistryMessage Documentation The documentation was partial in part of the methods

Changed the SimpleRegistry to work with UnsignedBulletinBoardMessage The basicMessage is not needed

Changed the SimpleRegistry to work with UnsignedBulletinBoardMessage The basicMessage is not needed

Changed the VoterRegistryMessage to wrap UnsignedBulletinBoardMessage there is no need to wrap unused basic message when using UnsignedBulletinBoardMessage

Re-organized the voter-registry Since there no need for basicMessage i have removed it, and changed few methods to be in language level 7

Re-organized the voter-registry Since there no need for basicMessage i have removed it, and changed few methods to be in language level 7

added the RegistryInstance interface Which gives the basic registry functionality (because there going to be at least two registries)

Changed the SimpleRegistry The new Simple Registry works according to the RegistryInstance interface

Changed the SimpleRegistry The new Simple Registry works according to the RegistryInstance interface

Changed the SimpleRegistry The new Simple Registry works according to the RegistryInstance interface

Added testing to the SimpleRegistryTest class The Test checking that SetVoter AddVoter AddToGroup RemoveFromGroup methods working.

Added testing to the SimpleRegistryTest class The Test checking that SetVoter AddVoter AddToGroup RemoveFromGroup methods working.

Test Plan: The idea is to create number of BulletinBoardMessage's that and post them, then ask from the server for message with relevant filter and check that all the messages that have been posted there.

Reviewers: arbel.peled

Differential Revision: https://proj-cs.idc.ac.il/D1
2016-02-12 07:37:32 -08:00
Vladimir Eliezer Tokarev 0d8e522e93 Changed the SimpleRegistry to work with UnsignedBulletinBoardMessage
The basicMessage is not needed
2016-01-22 07:35:30 -08:00
Arbel Deutsch Peled 3fed32f9e6 First (untested) version of BB Client with full batch support 2016-01-17 19:57:45 +02:00
Arbel Deutsch Peled 7e542a804c Fixed MySQL exclusion from standard test 2016-01-02 12:38:53 +02:00
Arbel Deutsch Peled d643932ef9 Added H2 support for Batch messages 2015-12-27 12:04:37 +02:00
Arbel Deutsch Peled 88b8f6d8ea Working version of Batch messages on Server-Side 2015-12-27 11:21:17 +02:00
Arbel Deutsch Peled b5237d6c9f Implemented (untested) batch messages in Bulletin Board Server (MySQL implementation only).
Implemented generic batch message signatures and digests.
Created new interface for Bulletin Board constants.
2015-12-21 23:16:06 +02:00
Arbel Deutsch Peled 37f962d520 Defined semi-final versions of the batch interfaces.
Implemented in part extended BB Server interface.
Added Digest support for Batch messages.
Made GlobalCryptoSetup a final singleton.
2015-12-19 19:54:50 +02:00
Arbel Deutsch Peled 37fdc0bb83 Fixed minor H2 bug.
Fixed dbTest gradle task (now tests all 3 supported DB engines).
2015-12-18 14:39:40 +02:00
Arbel Deutsch Peled b17954adc2 Split interface into BulletinBoardClient and AsyncBulletinBoardClient.
Added Batch Messages Bulletin Board Client interface and associated ProtoBufs.
Returned simple implementation of BulletinBoardClient.
Made ThreadedBulletinBoardClient extend SimpleBulletinBoardClient.
Fixed an issue in SQLite where identical Signatures could be added to the same message.
2015-12-14 23:14:52 +02:00
Arbel Deutsch Peled 79d29a05d3 Working version of ThreadedBulletinBoardClient.
The integration test also passes with SQLite and MySQL engines.
2015-12-14 09:45:40 +02:00
Arbel Deutsch Peled bfc62cd77c Slight enhancement to Server performance. 2015-12-12 23:18:32 +02:00
Arbel Deutsch Peled 975ad340be Bulletin Board Server WebApp support for MySQL and H2 engines. 2015-12-12 12:36:00 +02:00
Arbel Deutsch Peled 520697d121 Added named parameters to the BulletinBoardSQLServer.
Added support for H2 SQL engine.
Further generalization of the BulletinBoardSQLServer.
2015-12-12 11:54:52 +02:00
Arbel Deutsch Peled 3de54f16a2 Created (untested version of) a Threaded Bulletin Board Client.
Overhauled Bulletin Board Client interface to accommodate this.
Deprecated the Simple Bulletin Board Client.
Made the path to the server methods generic (defined in the Constants class of the rest package).
2015-12-10 15:08:41 +02:00
Arbel Deutsch Peled 76c5e6681f Made SQL Servers generic.
Added MySQL Server and test.
Added partial H2 Server code.
2015-12-09 14:47:18 +02:00
Arbel Deutsch Peled 3f21f30f35 Added getSignerID method to signatures.
Added timing output for Server tests.
2015-12-08 09:11:22 +02:00
Arbel Deutsch Peled 0b847dcaf4 Added a new version of the BB Server that allows for search of messages containing multiple tags and/or signatures.
Added tests for both Server types.
2015-12-08 08:17:30 +02:00
Arbel Deutsch Peled 679d18f4a2 Added BB client intergration test (broken)
Fixed MsgID retrieval in BB server
2015-12-06 20:33:45 +02:00
Arbel Deutsch Peled 2ff34355e4 Bulletin Board Server configuration support.
Bulletin Board Server signature testing.
2015-11-28 23:59:56 +02:00
Tal Moran ed28e2eb1b Fixed bulletin-board server tests (use temporary db instead of assuming one exists at specific path) 2015-11-23 09:25:49 +02:00
Tal Moran ad121a7bfd Merged encryption and signature work from crypto-primitives 2015-11-23 02:20:17 +02:00
Arbel Deutsch Peled dbf5727cee Added Some unit tests and fixed several bugs. 2015-11-22 23:36:24 +02:00
Arbel Deutsch Peled 3837b0c53e Merge branch 'master' of https://cs.idc.ac.il/rhodecode/meerkat/meerkat-java into Bulletin_Board_Server_phase_1 2015-11-22 18:42:35 +02:00
Tal Moran c76724f599 Interim merge for branch 'master' into crypto-primitives 2015-11-22 15:50:32 +02:00
Tal Moran 8200f08da0 Add configuration for test dependencies between subprojects 2015-11-22 15:31:51 +02:00
Arbel Deutsch Peled 03f1c3d483 Slight change to Message API 2015-11-22 12:22:21 +02:00
Tal Moran b8cc3feedb EC encryption code; compiles but not tested 2015-11-22 03:16:35 +02:00