def get_input_from(cls, player): """ Secret input from :py:obj:`player`. :param: player (int) """ v = [sbit() for i in range(sbitfix.k)] inst.inputbvec(len(v) + 3, sbitfix.f, player, *v) return cls._new(cls.int_type.from_vec(v))
def get_input_from(cls, player): """ Secret input from :py:obj:`player`. The input is decomposed into bits. :param: player (int) """ res = cls.from_vec(sbit() for i in range(n)) inst.inputbvec(n + 3, 0, player, *res.v) return res
def get_input_from(cls, player): res = cls.from_vec(sbit() for i in range(n)) inst.inputbvec(n + 3, 0, player, *res.v) return res