Our setup

Let $C$ be a nice (smooth, projective, geometrically integral) curve over $k$ of genus $g$ given by equations. Let $J$ be the Jacobian of $C$.

Goal

Given the equations of $C$, compute the endomorphism ring $\operatorname{End} \overline{J}$.