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

#860 in Magic Beans

Download history 29559/week @ 2024-02-26 23666/week @ 2024-03-04 25997/week @ 2024-03-11 29664/week @ 2024-03-18 27932/week @ 2024-03-25 37940/week @ 2024-04-01 39729/week @ 2024-04-08 30613/week @ 2024-04-15 30368/week @ 2024-04-22 21594/week @ 2024-04-29 22655/week @ 2024-05-06 28391/week @ 2024-05-13 26093/week @ 2024-05-20 34160/week @ 2024-05-27 28421/week @ 2024-06-03 24271/week @ 2024-06-10

113,588 downloads per month
Used in 85 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
~136K SLoC