Learning ECDSA by writing it myself