Implement ecdsa sign and verify