Commit Graph

551 Commits

Author SHA1 Message Date
Andreas Fackler 1fd7155e31 Remove unused CommonSubset error variants. 2018-05-31 09:37:00 +02:00
Andreas Fackler 9859002e1b Don't panic on shards of unequal size. 2018-05-31 09:12:15 +02:00
Andreas Fackler bb61d0c5ab Ignore messages in Agreement after termination. 2018-05-30 17:33:24 +02:00
Andreas Fackler f700ae82d0 Remove unused code from CommonSubset. 2018-05-30 15:50:16 +02:00
Andreas Fackler c91fa13213 Make Broadcast handle large payloads. 2018-05-30 15:40:15 +02:00
Andreas Fackler 2bd1269366
Merge pull request #46 from poanetwork/afck-threshold-sig
Implement threshold signatures and encryption.
2018-05-30 15:20:43 +02:00
Andreas Fackler a0a8582f0b Expand crypto tests. 2018-05-30 14:15:54 +02:00
Andreas Fackler 661bae6438 Implement threshold encryption. 2018-05-30 13:50:09 +02:00
Andreas Fackler 45a7c07106 Implement simple encryption. 2018-05-30 11:42:17 +02:00
Andreas Fackler 0017a2a7c0 Make public keys and signatures serializable. 2018-05-30 10:08:43 +02:00
Andreas Fackler 56ab6a5037 Simplify hash_g2. 2018-05-29 21:59:21 +02:00
Andreas Fackler 527b1c8c17 Use SHA256 and byteorder in hash_g2. 2018-05-29 17:59:50 +02:00
Andreas Fackler d999792234 Implement threshold signatures. 2018-05-29 17:06:02 +02:00
Andreas Fackler 94d52ebbbb
Merge pull request #49 from poanetwork/vk-node-id-and-network-size
Shared node ID and network size info among subalgorithms
2018-05-29 16:39:53 +02:00
Vladimir Komendantskiy ede1c7d157 moved the own ID membership test to the NetworkInfo constructor 2018-05-29 14:58:17 +01:00
Vladimir Komendantskiy 98f5304d4c top-level interface now requires providing a NetworkInfo parameter 2018-05-29 14:53:01 +01:00
Vladimir Komendantskiy 938d2f5c16 added a note about the use of NetworkInfo in tests 2018-05-29 14:53:01 +01:00
Vladimir Komendantskiy d09f3e26b4 introduced common shared network information 2018-05-29 14:53:01 +01:00
Vladimir Komendantskiy 332d5fbbe3
Merge pull request #50 from poanetwork/afck-simulation
Add message counting to the simulation.
2018-05-29 14:28:39 +01:00
Andreas Fackler 4b143828dd Add message counting to the simulation. 2018-05-29 15:11:32 +02:00
Andreas Fackler 9de4713de3
Merge pull request #44 from poanetwork/vk-conf-round
Added a CONF round
2018-05-28 13:07:26 +02:00
Vladimir Komendantskiy 2aac22f083 comment updates 2018-05-28 11:54:37 +01:00
Vladimir Komendantskiy 82643fb442 formatting 2018-05-24 19:48:10 +01:00
Vladimir Komendantskiy 67c7bf4f8b updated protobuf serialisation 2018-05-24 19:11:56 +01:00
Vladimir Komendantskiy 111ed03a47 review comments taken into account 2018-05-24 18:52:58 +01:00
Vladimir Komendantskiy 43a47e1f46 lints checked 2018-05-23 23:19:48 +01:00
Vladimir Komendantskiy 72d5cecbb9 Fixed non-termination in the suggested Cobalt fix.
The non-termination was due to the direct use of `bin_values` when invoking the
common coin. The fix amounts to making the CONF round depend only on the subset
of `bin_values` sent in the CONF message.
2018-05-23 23:00:19 +01:00
Vladimir Komendantskiy 751bb57ace CONF round added to Agreement 2018-05-23 18:38:33 +01:00
Andreas Fackler 7ad37f9029
Merge pull request #36 from poanetwork/afck-rust-update
Update Rust, re-enable rustfmt.
2018-05-21 11:43:45 +02:00
Andreas Fackler 9a0622f3f2 Update Rust, re-enable rustfmt. 2018-05-21 11:26:42 +02:00
Vladimir Komendantskiy 4e00894853
Merge pull request #35 from poanetwork/add-error-chain-crate
Added error-chain error handling.
2018-05-21 08:25:37 +01:00
Peter van Nostrand 1930ea8b7d Fixed a typo commst.rs. 2018-05-20 19:52:18 -04:00
Peter van Nostrand 465f17d9a5 Bumped reed-solomon-erasure crate version, fixed Protobuf error in example. 2018-05-20 19:39:47 -04:00
Peter van Nostrand 19b982284b Added error-chain error handling. 2018-05-20 07:51:33 -04:00
Andreas Fackler d223668561
Merge pull request #34 from poanetwork/afck-agreement
Extend tests and fix CommonSubset.
2018-05-19 17:51:02 +02:00
Andreas Fackler ca65a014d6 Use an unambiguous name for proposer ID. 2018-05-19 17:17:02 +02:00
Andreas Fackler ab89dabde9 Add a few explaining comments. 2018-05-19 17:10:30 +02:00
Andreas Fackler b8a2463d1c Extend tests and fix CommonSubset.
Verify termination and more outputs.

`CommonSubset` now instantiates `Agreement` with the correct ID.
2018-05-19 15:56:49 +02:00
Andreas Fackler 8a406dd154
Merge pull request #33 from poanetwork/vk-testnetwork-commonsubset
ported Common Subset tests to TestNetwork
2018-05-19 10:45:23 +02:00
Vladimir Komendantskiy fced73459e upgraded the protobuf dependency to fix a compile error 2018-05-18 22:45:18 +01:00
Vladimir Komendantskiy 962a618ffd ported Common Subset tests to TestNetwork 2018-05-18 22:04:09 +01:00
Vladimir Komendantskiy e4843b496f
Merge pull request #32 from poanetwork/afck-no-protoc
Remove protoc dep, use new MerkleTree methods, fix Agreement.
2018-05-18 14:31:00 +01:00
Andreas Fackler d5f9c4d40d Fix Agreement and re-enable HoneyBadger test. 2018-05-17 17:38:45 +02:00
Andreas Fackler 50d007b954 Remove protoc dep, use new MerkleTree methods. 2018-05-17 16:50:47 +02:00
Vladimir Komendantskiy 01e89a7c48
Merge pull request #31 from poanetwork/afck-benchmark
Add a network simulation example.
2018-05-17 12:50:06 +01:00
Andreas Fackler 500ec81b2f Add a network simulation example. 2018-05-17 12:52:07 +02:00
Andreas Fackler 31ec37630f
Merge pull request #30 from poanetwork/vk-dist-algo-agreement
The BA module now defines a DistAlgorithm instance
2018-05-17 12:51:47 +02:00
Vladimir Komendantskiy a0627b2550 review comments taken 2018-05-17 11:36:09 +01:00
Vladimir Komendantskiy ca49f4041b fixed the outdated code in Agreement test 2018-05-17 11:27:31 +01:00
Vladimir Komendantskiy c8c8e1bb1f added a latch for the decided value in Agreement to remember the output value 2018-05-17 10:43:56 +01:00