コード例 #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);
        }
コード例 #2
0
 public OutputPrimitiveDeclaration(PrimitiveConverter converter, IdSet partyIds)
 {
     _converter = converter;
     _partyIds  = partyIds;
 }
コード例 #3
0
 public InputPrimitiveDeclaration(PrimitiveConverter converter, int partyId)
 {
     _converter = converter;
     _partyId   = partyId;
 }