12 releases

0.3.2 Sep 26, 2024
0.3.0 May 23, 2024
0.2.2 Apr 25, 2024
0.2.1 Feb 15, 2024
0.1.1 Jan 24, 2021

#150 in Asynchronous

Download history 1115/week @ 2024-07-14 1256/week @ 2024-07-21 809/week @ 2024-07-28 1304/week @ 2024-08-04 1282/week @ 2024-08-11 1087/week @ 2024-08-18 907/week @ 2024-08-25 789/week @ 2024-09-01 836/week @ 2024-09-08 736/week @ 2024-09-15 884/week @ 2024-09-22 1293/week @ 2024-09-29 820/week @ 2024-10-06 552/week @ 2024-10-13 621/week @ 2024-10-20 595/week @ 2024-10-27

2,637 downloads per month
Used in 11 crates (7 directly)

MIT/Apache

100KB
2K SLoC

round-based


lib.rs:

License: MIT Docs Crates io Discord

An MPC framework that unifies and simplifies the way of developing and working with multiparty protocols (e.g. threshold signing, random beacons, etc.).

Goals

  • Async friendly
    Async is the most simple and efficient way of doing networking in Rust
  • Simple, configurable
    Protocol can be carried out in a few lines of code: check out examples.
  • Independent of networking layer
    We use abstractions Stream and Sink to receive and send messages.

Networking

In order to run an MPC protocol, transport layer needs to be defined. All you have to do is to implement Delivery trait which is basically a stream and a sink for receiving and sending messages.

Message delivery should meet certain criterias that differ from protocol to protocol (refer to the documentation of the protocol you're using), but usually they are:

  • Messages should be authenticated
    Each message should be signed with identity key of the sender. This implies having Public Key Infrastructure.
  • P2P messages should be encrypted
    Only recipient should be able to learn the content of p2p message
  • Broadcast channel should be reliable
    Some protocols may require broadcast channel to be reliable. Simply saying, when party receives a broadcast message over reliable channel it should be ensured that everybody else received the same message.

Features

Join us in Discord!

Feel free to reach out to us in Discord!

Dependencies

~1.5–8MB
~69K SLoC