Commit Graph

625 Commits

Author SHA1 Message Date
Andreas Fackler 30c5805446 Remove output and message queue from CommonCoin. 2018-07-24 11:57:50 +02:00
Andreas Fackler 102fa0e01d Remove output and message queue from Agreement. 2018-07-24 11:43:35 +02:00
Vladimir Komendantskiy aefb812f2a updated the Broadcast doc example to the latest API 2018-07-24 09:51:13 +01:00
Vladimir Komendantskiy c23aebffb4
Merge pull request #161 from poanetwork/afck-queue-fields
Remove output and message queue from HoneyBadger.
2018-07-23 20:38:38 +01:00
Andreas Fackler b89ad6bb5d Rename: try_output_batches. Add CS multi output error. 2018-07-23 21:36:09 +02:00
Andreas Fackler 4327744976 Remove output and message queue from HoneyBadger. 2018-07-23 18:11:45 +02:00
Andreas Fackler 32e1afc24a Add more arithmetic ops to Poly. 2018-07-23 15:56:45 +02:00
Andreas Fackler 984bb49fdc Accept more types in threshold crypto API.
This removes some unnecessary allocation and conversion by accepting
more primitive types and references as the index in threshold decryption
and signing, and as the argument to a polynomial.
2018-07-23 15:56:45 +02:00
Andreas Fackler 9d43e8df59
Merge pull request #150 from poanetwork/vk-api-messages66
Outgoing message API refactoring
2018-07-23 15:43:25 +02:00
Vladimir Komendantskiy bb8d81b451
Merge pull request #157 from poanetwork/afck-api-messages66
Handle initial QHB messages, fix DHB.
2018-07-23 12:44:17 +01:00
Andreas Fackler 432c865d4b Handle initial QHB messages, fix DHB. 2018-07-21 11:30:43 +02:00
Andreas Fackler 45eb76bf22
Merge pull request #155 from poanetwork/afck-docs
Clarify synchrony requirements in SyncKeyGen.
2018-07-21 08:46:17 +02:00
Andreas Fackler e14eb5006a Clarify synchrony requirements in SyncKeyGen. 2018-07-20 18:43:28 +02:00
Vladimir Komendantskiy a9346fa2a1 removed an accidental unused import from a merge conflict 2018-07-20 12:58:07 +01:00
Vladimir Komendantskiy bc245f2e67 added a Step for each module 2018-07-20 12:51:06 +01:00
Vladimir Komendantskiy 099fbc999e made Step depend on DistAlgorithm instead of base types 2018-07-20 12:47:19 +01:00
Vladimir Komendantskiy 17339c322c added a typedef for the Queueing HB propose result 2018-07-20 12:44:41 +01:00
Vladimir Komendantskiy ccd1a98c42 optimized function arguments and added a typedef for Simulation Step 2018-07-20 12:44:41 +01:00
Vladimir Komendantskiy 65b3097238 message queue refactoring WIP 2018-07-20 12:43:15 +01:00
Andreas Fackler 9488d3f936
Merge pull request #154 from poanetwork/afck-key-shares
Extend DKG docs, rename messages, add into_network_info.
2018-07-19 16:39:44 +02:00
Andreas Fackler d787173dd8 Rename DKG messages to Part and Ack. 2018-07-19 12:28:15 +02:00
Andreas Fackler 9159b42150 Add SyncKeyGen::into_network_info. 2018-07-19 12:18:01 +02:00
Andreas Fackler c179ad1e18 Extend sync_key_gen documentation. 2018-07-19 11:32:32 +02:00
Andreas Fackler 7820d5572a
Merge pull request #146 from poanetwork/afck-key-shares
Separate keys and key shares.
2018-07-19 10:24:10 +02:00
Andrew Gross bd1350b4b2
Merge pull request #152 from poanetwork/afck-docs
Improve DHB docs, address review comments.
2018-07-18 15:00:21 -06:00
Andreas Fackler fb0e35deea Improve DHB docs, address review comments. 2018-07-18 21:41:21 +02:00
Nick Sanders 5b2efef22d
Merge pull request #151 from poanetwork/afck-docs
Extend *honey_badger module docs.
2018-07-18 09:28:05 -07:00
Andreas Fackler 52a684eb7f Add example code for `SyncKeyGen` to the docs. 2018-07-18 17:59:28 +02:00
Andreas Fackler 466104bce6 Extend *honey_badger module docs. 2018-07-18 16:46:46 +02:00
Andreas Fackler 15cc6ffddd Separate keys and key shares. 2018-07-18 14:44:35 +02:00
Andreas Fackler 2d9b872484
Merge pull request #130 from poanetwork/vk-api-refactor66
Output API refactored
2018-07-18 14:10:39 +02:00
Nick Sanders f1c712c5ce
Merge pull request #144 from c0gent/c0gent-publickey-copy
Add `Copy` to `PublicKey` derived impls.
2018-07-17 16:00:23 -07:00
c0gent 8c1a111f13
Add `Copy` to `PublicKey` derived impls. 2018-07-17 15:38:50 -07:00
Vladimir Komendantskiy 4b88759844 review comments 2018-07-17 18:27:28 +01:00
Vladimir Komendantskiy f704b481ad Merge branch 'master' into vk-api-refactor66 2018-07-16 15:38:25 +01:00
Vladimir Komendantskiy a887d82e6b
Merge pull request #138 from poanetwork/afck-builder-change
Add a `JoinPlan` to facilitate joining a running DHB network.
2018-07-16 15:36:35 +01:00
Vladimir Komendantskiy c779d33dd1 Merge branch 'master' into vk-api-refactor66 2018-07-16 15:16:19 +01:00
Andreas Fackler 1f8373ef93 Add a `JoinPlan` to facilitate joining a running DHB network.
With that, a node can join a running network as an observer in any epoch
where key generation starts.
2018-07-16 16:03:36 +02:00
Andreas Fackler 4b35a8666a
Merge pull request #140 from poanetwork/clear-secret-key-set
Clear 'SecretKeySet' on drop.
2018-07-16 16:01:21 +02:00
Peter van Nostrand a86f6666b5 Clear 'Poly' and 'BivarPoly' coeffs on drop. 2018-07-16 09:38:27 -04:00
Vladimir Komendantskiy 9979e790aa added must_use to tests and removed Clone from FaultLog 2018-07-16 14:31:21 +01:00
Vladimir Komendantskiy 22195c4b93 Merge branch 'master' into vk-api-refactor66 2018-07-16 14:20:50 +01:00
Vladimir Komendantskiy c6a0090859 removed cloning of FaultLog 2018-07-16 12:33:00 +01:00
Vladimir Komendantskiy 5f858396aa
Merge pull request #137 from poanetwork/afck-dhb-votes
Fix DHB test with 1 validator; purge key gen msgs.
2018-07-16 12:31:54 +01:00
Andreas Fackler e73b78c773
Merge pull request #133 from poanetwork/mbr-travis-ci-stable
Tweak CI, now runs stable.
2018-07-16 10:10:17 +02:00
Marc Brinkmann 3e19b01f1f Tweak CI, now runs stable.
The following changes have been made to the Travis CI:

* The cache timeout has been increased, before builds would spend three minutes trying to cache something before giving up.
* The toolchain for building and testing has been switched to stable. A nightly version is still used to run `clippy` and `rustfmt`; however in both cases the toolchain binaries are used instead of compiling them from scratch.
* The `cargo check` pass has been removed; it simply tested whether or not the crate compiled against stable before compiling again against release. As there very, very few bugs that will cause a mismatch here (differences will be in execution), a trade-off was made in favor of compiling only once.
2018-07-16 09:34:28 +02:00
Andreas Fackler 55ad2eae44 Fix DHB test with 1 validator; purge key gen msgs.
This adds a bit of special handling to make sure messages don't stay in
the queue forever in the `dynamic_honey_badger` tests, even if there is
only one validator: the problem was that the single validator is always
ready for input, so it never processed incoming messages. However, to
add the new validator, it needs to process the joining node's key
generation messages.

`DynamicHoneyBadger` now also removes committed key generation messages
from the queue, to avoid committing duplicates.
2018-07-15 12:12:27 +02:00
Andreas Fackler 01ad256363
Merge pull request #127 from poanetwork/afck-dhb-votes
Minor fixes and simplifications.
2018-07-15 11:24:00 +02:00
Andreas Fackler 78d628452a
Merge pull request #136 from poanetwork/remove-protoc-from-ci
Removed protoc installation from CI setup.
2018-07-15 10:59:06 +02:00
Andreas Fackler 70e8fedb15
Merge pull request #126 from poanetwork/remove-clear-on-drop
Replaced clear-on-drop with 'std::ptr::write_volatile'.
2018-07-15 10:44:59 +02:00