.. | ||
index.html | ||
README.md |
Hashing Algorithms
Explain what hash functions are?
Cryptographic Hashing
The Cryptographic Hash Functions are a specific family of hash functions.
utils . keccak256 ( aBytesLike ) => string
Returns the KECCAK256 digest aBytesLike.
utils . ripemd160 ( aBytesLike ) => string
Returns the RIPEMD-160 digest of aBytesLike.
utils . sha256 ( aBytesLike ) => string
Returns the SHA2-256 digest of aBytesLike.
utils . sha512 ( aBytesLike ) => string
Returns the SHA2-512 digest of aBytesLike.
utils . computeHmac ( algorithm , key , data ) => string
Returns the HMAC of data with key using the Algorithm algorithm.
HMAC Supported Algorithms
utils . SupportedAlgorithms . sha256
Use the SHA2-256 hash algorithm.
utils . SupportedAlgorithms . sha512
Use the SHA2-512 hash algorithm.
Common Hashing Helpers
utils . hashMessage ( message ) => string
Computes the Ethereum message digest of message. Ethereum messages are
converted to UTF-8 bytes and prefixed with x19Ethereum Signed Message:
and the length of message.
utils . id ( text ) => string
The Ethereum Identity function computs the keccak256 hash of the text bytes.
utils . namehash ( name ) => string
Returns the ENS Namehash of name.
Solidity Hashing Algorithms
When using the Solidity abi.packEncoded(...)
function, a non-standard
tightly packed version of encoding is used. These functions implement
the tightly packing algorithm.
utils . solidityPack ( arrayOfTypes , arrayOfValues ) => string
Returns the non-standard encoded arrayOfValues packed according to their respecive type in arrayOfTypes.
utils . solidityKeccak256 ( arrayOfTypes , arrayOfValues ) => string
Returns the KECCAK256 of the non-standard encoded arrayOfValues packed according to their respective type in arrayOfTypes.
utils . soliditySha256 ( arrayOfTypes , arrayOfValues ) => string
Returns the SHA2-256 of the non-standard encoded arrayOfValues packed according to their respective type in arrayOfTypes.
Content Hash: 65dd2158ef160da7be3291c8e7aac15df2de683869df9c31b8efdaa39551b3e4