fixed ecdsa response logic