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

#6 in #reply

Download history 36281/week @ 2024-07-20 31889/week @ 2024-07-27 35589/week @ 2024-08-03 47101/week @ 2024-08-10 31405/week @ 2024-08-17 41022/week @ 2024-08-24 45278/week @ 2024-08-31 41465/week @ 2024-09-07 36248/week @ 2024-09-14 40066/week @ 2024-09-21 39522/week @ 2024-09-28 43855/week @ 2024-10-05 43203/week @ 2024-10-12 48281/week @ 2024-10-19 39062/week @ 2024-10-26 49925/week @ 2024-11-02

186,542 downloads per month
Used in 87 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–12MB
~138K SLoC