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 was archived by the owner on Mar 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/web3-utils.rst
+16
Original file line number
Diff line number
Diff line change
@@ -319,6 +319,8 @@ soliditySha3
319
319
Will calculate the sha3 of given input parameters in the same way solidity would.
320
320
This means arguments will be ABI converted and tightly packed before being hashed.
321
321
322
+
.. warning:: This method poses a security risk where multiple inputs can compute to the same hash. Provided in the example code are multiple cases of this security risk
323
+
322
324
----------
323
325
Parameters
324
326
----------
@@ -344,6 +346,20 @@ Example
344
346
345
347
.. code-block:: javascript
346
348
349
+
// As a short example of the non-distinguished nature of
350
+
// Solidity tight-packing (which is why it is inappropriate
351
+
// for many things from a security point of view), consider
352
+
// the following examples are all equal, despite representing
0 commit comments