Closed ayrat555 closed 3 years ago
Currently, ExKeccak.hash_256/1 raises an exception when invalid data is provided. This PR changes error handling logic. Now {:error, :invalid_type} will be returned if the provided data is not binary
ExKeccak.hash_256/1
{:error, :invalid_type}
@tzumby thanks for the awesome library. Can you please take a look at this PR when you have time?
Thanks @ayrat555, this is awesome! Approving it now but I'll cut a release tomorrow.
Currently,
ExKeccak.hash_256/1
raises an exception when invalid data is provided. This PR changes error handling logic. Now{:error, :invalid_type}
will be returned if the provided data is not binary