C# Class MpcLib.DistributedSystem.ProtocolIdGenerator

Mostra file Open project: mahdiz/mpclib Class Usage Examples

Public Methods

Method Description
GateEvalIdentifier ( int gateNumber ) : ulong
GateInputSharingIdentifier ( int gateNumber, int whichInput ) : ulong
GenericIdentifier ( int id ) : ulong
GetIntraQuorumProtocolNumber ( ulong id ) : uint
IsQuorumProtocolIdentifier ( ulong id ) : bool
NopIdentifier ( ulong baseProtocolIdentifier ) : ulong
QuorumProtocolIdentifier ( ushort quorumNumber, uint intraQuorumProtocolNumber ) : ulong
ResultBroadcastIdentifier ( int outputNumber ) : ulong
TwoQuorumProtocolIdentifier ( ushort quorumNumberA, ushort quorumNumberB, ushort intraQuorumProtocolNumber ) : ulong

Method Details

GateEvalIdentifier() public static method

public static GateEvalIdentifier ( int gateNumber ) : ulong
gateNumber int
return ulong

GateInputSharingIdentifier() public static method

public static GateInputSharingIdentifier ( int gateNumber, int whichInput ) : ulong
gateNumber int
whichInput int
return ulong

GenericIdentifier() public static method

public static GenericIdentifier ( int id ) : ulong
id int
return ulong

GetIntraQuorumProtocolNumber() public static method

public static GetIntraQuorumProtocolNumber ( ulong id ) : uint
id ulong
return uint

IsQuorumProtocolIdentifier() public static method

public static IsQuorumProtocolIdentifier ( ulong id ) : bool
id ulong
return bool

NopIdentifier() public static method

public static NopIdentifier ( ulong baseProtocolIdentifier ) : ulong
baseProtocolIdentifier ulong
return ulong

QuorumProtocolIdentifier() public static method

public static QuorumProtocolIdentifier ( ushort quorumNumber, uint intraQuorumProtocolNumber ) : ulong
quorumNumber ushort
intraQuorumProtocolNumber uint
return ulong

ResultBroadcastIdentifier() public static method

public static ResultBroadcastIdentifier ( int outputNumber ) : ulong
outputNumber int
return ulong

TwoQuorumProtocolIdentifier() public static method

public static TwoQuorumProtocolIdentifier ( ushort quorumNumberA, ushort quorumNumberB, ushort intraQuorumProtocolNumber ) : ulong
quorumNumberA ushort
quorumNumberB ushort
intraQuorumProtocolNumber ushort
return ulong