public override Gate Copy() { ComputationGate clone = new ComputationGate(Type); clone.EvaluationQuorum = EvaluationQuorum; return(clone); }
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>(); }
public override Gate Copy() { ComputationGate clone = new ComputationGate(Type); clone.EvaluationQuorum = EvaluationQuorum; return clone; }