示例#1
0
        public override Gate Copy()
        {
            ComputationGate clone = new ComputationGate(Type);

            clone.EvaluationQuorum = EvaluationQuorum;
            return(clone);
        }
示例#2
0
 public MultiQuorumGateEvaluation(Party me, ComputationGate evalGate, IDictionary <Gate, Quorum> gateQuorumMapping, Circuit circuit,
                                  IGateEvaluationProtocolFactory <T> protocolFactory, IDictionary <InputGateAddress, T> circuitInputs, BigInteger prime, ulong protocolId)
     : base(me, GetParticipatingQuorumList(evalGate, gateQuorumMapping, circuit), protocolId)
 {
     EvalGate          = evalGate;
     GateQuorumMapping = gateQuorumMapping;
     Circuit           = circuit;
     Prime             = prime;
     EvalQuorum        = gateQuorumMapping[EvalGate];
     CircuitInputs     = circuitInputs;
     ProtocolFactory   = protocolFactory;
     Result            = new Dictionary <OutputGateAddress, T>();
 }
示例#3
0
文件: Gate.cs 项目: mahdiz/mpclib
 public override Gate Copy()
 {
     ComputationGate clone = new ComputationGate(Type);
     clone.EvaluationQuorum = EvaluationQuorum;
     return clone;
 }