add initial ecdsa sign function