I want to use the Montgomery ladder to speed up the process of calculating scalar multiplication. Here I use the Montgomery ladder but on the Weierstrass curve.
In the equation $x^3 + 2x + 9 \bmod 37$ the result is correct.
But why on the curve $x^3 + x + 1 \bmod 463$ the result is wrong? Is there a specific criterion for using the Montgomery ladder on the Weierstrass curve? thank you.