migrate from old usage of elliptic_curve_key type.