def _get(self, vtype, name, ignore_check = False):
        assert isinstance(name, str)

        for D in [self.Const, self.Pub, self.Sec]:
            if name in D:
                assert isinstance(D[name], vtype)
                return D[name]

        return vtype(self, name)
dataset/ETHPy150Open gdanezis/petlib/examples/genzkp.py/ZKProof._get/original