#websocket #server #mpc #dkg


Websocket server library for MPC sessions

7 releases

Uses new Rust 2021

0.3.6 May 9, 2022
0.3.5 Apr 30, 2022
0.3.2 Mar 28, 2022
0.2.1 Mar 18, 2022

#46 in WebSocket

Download history 36/week @ 2022-03-13 12/week @ 2022-03-20 61/week @ 2022-03-27 13/week @ 2022-04-03 1/week @ 2022-04-17 20/week @ 2022-04-24 48/week @ 2022-05-01 49/week @ 2022-05-08 124/week @ 2022-05-15 30/week @ 2022-05-22 36/week @ 2022-05-29 38/week @ 2022-06-05 4/week @ 2022-06-12 2/week @ 2022-06-19

87 downloads per month

MIT license

910 lines


Websocket server for MPC key generation and signing using JSON-RPC.

The library has been designed so that the messages transferred between parties are only stored in memory for the shortest lifetime; that is just enough time to extract the required routing information to be able to handle the message.

Auditors will want to pay particular attention to the handling of the SESSION_MESSAGE and NOTIFY_PROPOSAL methods which are sensitive for security and privacy reasons.

By looking at the source for Group, Session and State structs auditors can verify that no sensitive information is stored in the server state.

A session may have associated data in it's value which is public information that can be shared between clients; the value may be set by the session owner when the session is created and later retrieved by other clients when they join the session.

The associated session data is typically used by signing sessions to indicate the message or transaction that will be signed.


~351K SLoC