The direction of the magnetic potential, ##\vec A##, must be in the direction of the current, which is in ##\hat z## direction in cylindrical coordinates.
It is obvious that the potential only varies with ##s##.
Therefore, $$\vec A = A(s) \hat z$$
Therefore, $$\nabla \times \vec A = \vec B$$...