1
0
mirror of synced 2025-01-13 17:24:17 +00:00
Youngjoon Lee 8449c81d0f
Mixnet PoC base branch ()
* Add `mixnode` and `mixnet-client` crate ()

* Add `mixnode` binary ()

* Integrate mixnet with libp2p network backend ()

* Fix : proper delays ()

* proper delays

* add missing duration param

* tiny fix: compilation error caused by `rand` 0.8 -> 0.7

* use `get_available_port()` for mixnet integration tests ()

* add missing comments

* Overwatch mixnet node ()

* Add mixnet service and overwatch app

* remove #[tokio::main]

---------

Co-authored-by: Youngjoon Lee <taxihighway@gmail.com>

* fix tests for the overwatch mixnode ()

* fix panic when corner case happen in RandomDelayIter ()

* Use `log` service for `mixnode` bin ()

* Use `wire` for MixnetMessage in libp2p ()

* Prevent tmixnet tests from running forever ()

* Use random delay when sending msgs to mixnet ()

* fix a minor compilation error caused by the latest master

* Fix run output fd ()

* add a connection pool

* Exp backoff ()

* move mixnet listening into separate task

* add exponential retry for insufficient peers in libp2p

* fix logging

* Fix MutexGuard across await ()

* Fix MutexGuard across await

Holding a MutexGuard across an await point is not a good idea.
Removing that solves the issues we had with the mixnet test

* Make mixnode handle bodies coming from the same source concurrently ()

---------

Co-authored-by: Youngjoon Lee <taxihighway@gmail.com>

* Move wait at network startup ()

We now wait after the call to 'subscribe' to give the network
the time to register peers in the mesh before starting to
publish messages

* Remove unused functions from mixnet connpool ()

* Mixnet benchmark ()

* merge fixes

* add `connection_pool_size` field to `config.yaml`

* Simplify mixnet topology ()

* Simplify bytes and duration range ser/de ()

* optimize bytes serde and duration serde

---------

Co-authored-by: Al Liu <scygliu1@gmail.com>
Co-authored-by: Daniel Sanchez <sanchez.quiros.daniel@gmail.com>
Co-authored-by: Giacomo Pasini <Zeegomo@users.noreply.github.com>
2023-09-14 17:38:47 +09:00
..
2023-09-14 17:38:47 +09:00
2023-09-14 17:38:47 +09:00