Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public OutputPrimitiveDeclaration(PrimitiveConverter converter, IdSet partyIds)
 {
     _converter = converter;
     _partyIds  = partyIds;
 }
Exemplo n.º 3
0
 public InputPrimitiveDeclaration(PrimitiveConverter converter, int partyId)
 {
     _converter = converter;
     _partyId   = partyId;
 }