def get_array(self, vtype, name, number, start=0):
        """Returns an array of variables"""
        assert vtype in [Gen, ConstGen, Sec, Pub, ConstPub] 
        assert isinstance(name, str)
        assert self._check_name_ok(name)

        if name in self.arrays:
            assert self.arrays[name] == (number, start)
        else:
            self.arrays[name] = (number, start)

        names = ["%s[%i]" % (name,i) for i in range(start, start+number)]
        return self.get(vtype, names, True)
dataset/ETHPy150Open gdanezis/petlib/examples/genzkp.py/ZKProof.get_array/original