C# Class MpcLib.MpcProtocols.Dkms.DkmsProtocol

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

Méthodes publiques

Свойство Type Description
Circuit Circuit
Input Zp
NumSlots int
Prime int

Protected Properties

Свойство Type Description
MpcSessions SessionCollector

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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
Résultat System

OnMpcFinish() protected méthode

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

OnMpcSend() protected méthode

protected OnMpcSend ( int fromId, int toId, Msg msg ) : void
fromId int
toId int
msg MpcLib.DistributedSystem.Msg
Résultat void

Run() public méthode

public Run ( ) : void
Résultat void

RunAnchorMpc() protected méthode

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

RunChildMpc() protected méthode

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
Résultat BgwProtocol

ShareSecret() protected méthode

protected ShareSecret ( Zp secret, IList players, DkmsKey key ) : void
secret Zp
players IList
key DkmsKey
Résultat void

Property Details

Circuit public_oe property

public Circuit,MpcLib.MpcProtocols.Dkms Circuit
Résultat Circuit

Input public_oe property

public Zp Input
Résultat Zp

MpcSessions protected_oe property

protected SessionCollector MpcSessions
Résultat SessionCollector

NumSlots public_oe property

public int NumSlots
Résultat int

Prime public_oe property

public int Prime
Résultat int