Initial work on ECDSA