Crate mixnet

Source
Expand description

A mixnet loosely based on Loopix.

This crate is mostly network agnostic. While it determines which nodes should be connected and which packets should be sent where, it does not care how this is done. It’s not entirely agnostic; it assumes that peers have 32-byte globally-unique identifiers.

Modules§

core
Mixnet core logic.
reply_manager
A mixnode may receive the same request multiple times due to retransmission (see eg request_manager). A ReplyManager can be used to cache replies, to avoid needing to execute requests more than once.
request_manager
For more reliable delivery, a RequestManager can be used instead of calling Mixnet::post_request directly. A RequestManager serves as an additional buffer for requests, and will retry posting if requests are not removed within the expected time.