C# Class MpcLib.MpcProtocols.Dkms.DkmsProtocol

Implements the MPC protocol of Dani, King, Movahedi, and Saia (DKMS'12).
Inheritance: AsyncProtocol
Exibir arquivo Open project: mahdiz/mpclib

Public Properties

Property Type Description
Circuit Circuit
Input Zp
NumSlots int
Prime int

Protected Properties

Property Type Description
MpcSessions SessionCollector

Public Methods

Method Description
DkmsProtocol ( Circuit circuit, AsyncParty p, IList playerIds, Zp playerInput, int numSlots, StateKey stateKey ) : System
Run ( ) : void

Protected Methods

Method Description
OnMpcFinish ( StateKey stateKey ) : void

This method is invoked once a heavy-weight SMPC is finished.

OnMpcSend ( int fromId, int toId, Msg msg ) : void
RunAnchorMpc ( Gate anchor ) : BgwProtocol

Starts a heavy-weight SMPC instance for an anchor gate player.

RunChildMpc ( Gate anchor, Gate myGate, Zp myInput ) : BgwProtocol

Starts a heavy-weight SMPC instance for an SMPC child gate player.

ShareSecret ( Zp secret, IList players, DkmsKey key ) : void

Method Details

DkmsProtocol() public method

public DkmsProtocol ( Circuit circuit, AsyncParty p, IList playerIds, Zp playerInput, int numSlots, StateKey stateKey ) : System
circuit Circuit
p AsyncParty
playerIds IList
playerInput Zp
numSlots int
stateKey StateKey
return System

OnMpcFinish() protected method

This method is invoked once a heavy-weight SMPC is finished.
protected OnMpcFinish ( StateKey stateKey ) : void
stateKey StateKey
return void

OnMpcSend() protected method

protected OnMpcSend ( int fromId, int toId, Msg msg ) : void
fromId int
toId int
msg MpcLib.DistributedSystem.Msg
return void

Run() public method

public Run ( ) : void
return void

RunAnchorMpc() protected method

Starts a heavy-weight SMPC instance for an anchor gate player.
protected RunAnchorMpc ( Gate anchor ) : BgwProtocol
anchor Gate
return BgwProtocol

RunChildMpc() protected method

Starts a heavy-weight SMPC instance for an SMPC child gate player.
protected RunChildMpc ( Gate anchor, Gate myGate, Zp myInput ) : BgwProtocol
anchor Gate
myGate Gate
myInput Zp
return BgwProtocol

ShareSecret() protected method

protected ShareSecret ( Zp secret, IList players, DkmsKey key ) : void
secret Zp
players IList
key DkmsKey
return void

Property Details

Circuit public_oe property

public Circuit,MpcLib.MpcProtocols.Dkms Circuit
return Circuit

Input public_oe property

public Zp Input
return Zp

MpcSessions protected_oe property

protected SessionCollector MpcSessions
return SessionCollector

NumSlots public_oe property

public int NumSlots
return int

Prime public_oe property

public int Prime
return int