lib ecdsa only validates signature