You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
parity.api.util.sha3 interprets its argument as 'binary' information. This is problematic since there are certain binary blobs that JS cannot encode as a string, which get opaquely coerced to some other string.
web.sha3 addresses this by interpreting 0x prefixed strings as hex-encoded data - other inputs are assumed to be binary-block strings.
It should probably be consistent with web3.sha3. Failing that, it should remain consistent with the JSONRPC's conventions and only accept hex-encoded data.
The text was updated successfully, but these errors were encountered:
parity.api.util.sha3
interprets its argument as 'binary' information. This is problematic since there are certain binary blobs that JS cannot encode as a string, which get opaquely coerced to some other string.web.sha3
addresses this by interpreting0x
prefixed strings as hex-encoded data - other inputs are assumed to be binary-block strings.It should probably be consistent with
web3.sha3
. Failing that, it should remain consistent with the JSONRPC's conventions and only accepthex-encoded
data.The text was updated successfully, but these errors were encountered: