C# Class MpcLib.Common.FiniteField.Circuits.Circuit

Datei anzeigen Open project: mahdiz/mpclib Class Usage Examples

Public Properties

Property Type Description
OutputGate Gate

Protected Properties

Property Type Description
Prime int

Public Methods

Method Description
Circuit ( int prime, IList gates, IList inputs, Gate outputGate ) : System
EmptyResult ( ) : void
ToString ( ) : string

Private Methods

Method Description
GetInputOrOutputWires ( bool isInput ) : IList
InternalCalculate ( string inputs, int prime ) : Zp

Returns a List of all outputs.

StringSplit ( string source, string regexDelimiter, bool trimTrailingEmptyStrings ) : string[]

Method Details

Circuit() public method

public Circuit ( int prime, IList gates, IList inputs, Gate outputGate ) : System
prime int
gates IList
inputs IList
outputGate Gate
return System

EmptyResult() public method

public EmptyResult ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

OutputGate public_oe property

public Gate,MpcLib.Common.FiniteField.Circuits OutputGate
return Gate

Prime protected_oe property

protected int Prime
return int