7 releases (breaking)

0.7.0 Oct 3, 2023
0.6.0 Sep 1, 2023
0.5.0 Aug 31, 2023
0.4.0 Aug 31, 2023
0.1.0 May 23, 2023

#970 in Magic Beans

Download history 18901/week @ 2023-12-14 11498/week @ 2023-12-21 8546/week @ 2023-12-28 17856/week @ 2024-01-04 19346/week @ 2024-01-11 24675/week @ 2024-01-18 23794/week @ 2024-01-25 19595/week @ 2024-02-01 28265/week @ 2024-02-08 29976/week @ 2024-02-15 30322/week @ 2024-02-22 26646/week @ 2024-02-29 24302/week @ 2024-03-07 25807/week @ 2024-03-14 32120/week @ 2024-03-21 23314/week @ 2024-03-28

110,911 downloads per month
Used in 78 crates (via sc-mixnet)

MIT license

190KB
3.5K SLoC

Parity Mix Network

Overview

This crate implements the core logic for a Substrate Mix Network node. It does not provide a full node implementation; the following parts must be provided by the crate user:

  • Networking. This crate is mostly network-agnostic.
  • Blockchain integration. This crate expects to be provided with the current session index, phase, and mixnodes.
  • Request/reply handling. This crate treats request and reply payloads as opaque blobs.

Modules

The core mixnet logic lives in the core module and may be used on its own. The request_manager and reply_manager modules provide a very simple reliable delivery layer.


lib.rs:

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.

Dependencies

~5–13MB
~136K SLoC