private static SecurePrimitive[] InputPrimitives(CircuitBuilder builder, InputPrimitiveDeclaration[] inputDeclaration) { SecurePrimitive[] primitives = new SecurePrimitive[inputDeclaration.Length]; for (int i = 0; i < primitives.Length; ++i) { PrimitiveConverter converter = inputDeclaration[i].Converter; primitives[i] = converter.FromWires(builder, InputWires(builder, converter.NumberOfWires)); } return(primitives); }
public OutputPrimitiveDeclaration(PrimitiveConverter converter, IdSet partyIds) { _converter = converter; _partyIds = partyIds; }
public InputPrimitiveDeclaration(PrimitiveConverter converter, int partyId) { _converter = converter; _partyId = partyId; }