Module round_based::party
source · Expand description
Party of MPC protocol
MpcParty
is party of MPC protocol, connected to network, ready to start carrying out the protocol.
use round_based::{Mpc, MpcParty, Delivery, PartyIndex};
async fn keygen<M>(party: M, i: PartyIndex, n: u16) -> Result<KeyShare>
where
M: Mpc<ProtocolMessage = KeygenMsg>
{
// ...
}
async fn connect() -> impl Delivery<KeygenMsg> {
// ...
}
let delivery = connect().await;
let party = MpcParty::connected(delivery);
let keyshare = keygen(party, i, n).await?;
Structs§
- Party of MPC protocol
Traits§
- Party of MPC protocol (trait)