Пример #1
0
        public BitwiseOperationProtocol(Party me, Quorum quorum, IList <Share <BigZp> > bitSharesA, IList <Share <BigZp> > bitSharesB, IBitProtocolFactory bitProtocolFactory)
            : base(me, quorum)
        {
            Debug.Assert(bitSharesA.Count == bitSharesB.Count);

            BitSharesA      = bitSharesA;
            BitSharesB      = bitSharesB;
            ProtocolFactory = bitProtocolFactory;
        }
Пример #2
0
 public PrefixOperationProtocol(Party me, Quorum quorum, IList <Share <BigZp> > sharedBits, IBitProtocolFactory bitProtocolFactory)
     : base(me, quorum)
 {
     SharedBits      = sharedBits;
     ProtocolFactory = bitProtocolFactory;
 }