Commit Graph

58 Commits

Author SHA1 Message Date
p4u
5603b7b5b9 Change references to go-dvote
Signed-off-by: p4u <p4u@dabax.net>
2019-02-12 13:16:47 +01:00
p4u
7ab2ffd191 Update census code URLs and modules
Signed-off-by: p4u <p4u@dabax.net>
2019-02-12 13:12:16 +01:00
p4u
5187c1af1d Merge remote-tracking branch 'census/master'
Signed-off-by: p4u <p4u@dabax.net>
2019-02-12 13:04:54 +01:00
imw
b0333c86aa Merge pull request #19 from vocdoni/feature_modular_transports
Modular transports
2019-02-12 11:55:41 +01:00
p4u
7fb1d51fab Merge branch 'feature/new_merkletree'
Signed-off-by: p4u <p4u@dabax.net>
2019-02-12 11:38:56 +01:00
p4u
3e2b4d1cfa Adapt documentation to new merkle tree
Signed-off-by: p4u <p4u@dabax.net>
2019-02-12 10:53:01 +01:00
p4u
b8dccadfaa Fix getRoot
Signed-off-by: p4u <p4u@dabax.net>
2019-02-11 20:03:49 +01:00
p4u
6d3bf7c18d Fix dump function 2019-02-11 18:17:00 +01:00
p4u
c258a9ad9c Using camelCase on censusID
Signed-off-by: p4u <p4u@dabax.net>
2019-02-11 10:36:33 +01:00
p4u
0c3587bb9c Keep adapting code to new merkletree
Add RootHash JSON parameter.
Remove Spanshopt API method.
Add support on genProof/checkProof/dump to specify the RootHash
Refactory of some code

Signed-off-by: p4u <p4u@dabax.net>
2019-02-07 17:16:28 +01:00
imw
7128e24db3 working implementation of modular transports, generator still pubsub only 2019-02-07 13:32:49 +01:00
imw
5ce8bb33ee initial attempt at modular transports, fails with segfault 2019-02-07 12:06:10 +01:00
Pau
167c8858fe Merge pull request #5 from vocdoni/cors-reorder
Handling CORS headers as soon as possible and returning 404 on unkown…
2019-02-05 14:52:17 +01:00
Jordi
d267116782 Handling CORS headers as soon as possible and returning 404 on unkown requests 2019-02-05 14:26:46 +01:00
Jordi
144221908b Adding CORS headers 2019-02-05 13:42:11 +01:00
p4u
dad369ebff Keep adapting the code to new merkletree implementation
Use different database storages and merkletree for each censusID

Signed-off-by: p4u <p4u@dabax.net>
2019-02-01 20:20:34 +01:00
p4u
abb712d2b6 Adapt merkletree to new go-iden3 implementation
First iteration, more work needs to be done.

Signed-off-by: p4u <p4u@dabax.net>
2019-01-31 18:54:02 +01:00
p4u
6551f598cf Use Root Hash as censusID when creating a snapshot.
Add more authentication control.
Fix snapshot namespace issue.
Improve documentation.

Signed-off-by: p4u <p4u@dabax.net>
2019-01-25 21:21:14 +01:00
p4u
04dd103bb1 Add censushttp cmd. Rename processHttp to censusmanager
Signed-off-by: p4u <p4u@dabax.net>
2019-01-25 19:04:58 +01:00
p4u
408457d65b Fix auth error return
Signed-off-by: p4u <p4u@dabax.net>
2019-01-24 14:40:13 +01:00
Pau
0e4c0cb8db Merge pull request #18 from vocdoni/hotfix/data-record-type
Create new data type for exporting PubSub types
2019-01-23 16:57:03 +01:00
p4u
8bd2b1acea Create new data type for exporting PubSub types
Signed-off-by: p4u <p4u@dabax.net>
2019-01-23 16:41:49 +01:00
imw
6c1305115e Merge pull request #17 from vocdoni/pubsub_testing
explicitly import ipfs-api, declare msg before listen loop
2019-01-23 16:15:53 +01:00
imw
435359e233 explicitly import ipfs-api, declare msg before listen loop 2019-01-23 16:14:29 +01:00
imw
9bdc8536fc Merge pull request #16 from vocdoni/pubsub_testing
Pubsub testing
2019-01-23 13:46:44 +01:00
imw
b88d88e931 removed remnant of http listener 2019-01-23 13:45:04 +01:00
imw
90de87f243 pubsub messagaing working w/ generator 2019-01-22 16:44:45 +01:00
p4u
4f72b43600 Add snapshot and dump methods
Signed-off-by: p4u <p4u@dabax.net>
2019-01-22 16:41:46 +01:00
imw
fda66aa1af move generator to cmd 2019-01-21 14:54:28 +01:00
p4u
c150bf570e Implement authentication method
First version, partially tested

Signed-off-by: p4u <p4u@dabax.net>
2019-01-18 13:36:59 +01:00
Pau
7025725fb2 Merge pull request #4 from vocdoni/f/treeIdNameChange
ProcessID => CensusID
2019-01-18 10:30:46 +01:00
Aleix
1922d46dc9 ProcessID => CensusID 2019-01-17 17:00:10 +01:00
p4u
e499f49c26 Use go modules and move main to cmd subdir
Signed-off-by: p4u <p4u@dabax.net>
2019-01-16 18:28:36 +01:00
p4u
15069df984 Introduce crypto library
Add signature package based on nancl

Signed-off-by: p4u <p4u@dabax.net>
2019-01-16 12:27:35 +01:00
p4u
6fd9aea6c8 Add getRoot method 2019-01-11 17:59:38 +01:00
p4u
a503c6555e Change go-iden3 dependencies to vocdoni/go-iden3
New iden3 merkleTree implementation is not longer compatible. Until new
documentation is availabl and vocdoni code is adapted, use frozen
version of go-iden3 implementation.
2018-12-28 14:52:55 +01:00
imw
7731d06ce6 Updated README to show generator usage 2018-12-28 14:22:35 +01:00
imw
d8e9ade40a Merge pull request #15 from vocdoni/batching_initial_approach
All work so far
2018-12-28 14:19:16 +01:00
imw
d09af85502 Publishes batches to ipfs and pins them. Assumes running ipfs daemon on 8080. Moved relay listener to 8090 2018-12-28 14:01:50 +01:00
imw
6ad2f16c24 add ipfs pubsub methods 2018-12-28 12:37:36 +01:00
imw
b4b687eeda changed serialization logic to json strings, added batch compaction 2018-12-20 12:21:11 +01:00
imw
6cce8cb242 added primitive ballot/envelope generator, changed type naming 2018-12-19 13:36:51 +01:00
imw
ddfc8e1187 reworked db logic based on iden3 pattern - allows for single storage location with prefixing 2018-12-18 15:02:31 +01:00
imw
af81f8825e added curl request to README 2018-12-14 15:41:16 +01:00
imw
88122f053f removed some debug statements 2018-12-14 15:35:08 +01:00
imw
dadc5e3291 main loop signaling working, db setup in batch functions :-( 2018-12-14 15:34:03 +01:00
p4u
4bd4f33f43 Update README 2018-12-14 14:17:17 +01:00
p4u
a504f46141 Fix names and update README 2018-12-14 14:13:13 +01:00
p4u
5fd182549f Add processHttp implementation
Exposes a HTTP API to manage merkle trees

Signed-off-by: p4u <p4u@dabax.net>
2018-12-14 14:11:28 +01:00
imw
335c7b3217 added main loop and config, added naive batch logic 2018-12-14 13:51:27 +01:00