docs: added docs for hashing

This commit is contained in:
Richard Moore 2022-11-27 21:53:31 -05:00
parent 368f960904
commit fe3270a6fe
2 changed files with 6 additions and 2 deletions

@ -1,3 +1,8 @@
/**
* About hashing here...
*
* @_section: api/hashing:Hashing Utilities [hashing]
*/
export { id } from "./id.js" export { id } from "./id.js"
export { isValidName, namehash, dnsEncode } from "./namehash.js"; export { isValidName, namehash, dnsEncode } from "./namehash.js";

@ -86,10 +86,9 @@ export function solidityPacked(types: ReadonlyArray<string>, values: ReadonlyArr
* @param {Array<string>} types - The Solidity types to interpret each value as [default: bar] * @param {Array<string>} types - The Solidity types to interpret each value as [default: bar]
* @param {Array<any>} values - The values to pack * @param {Array<any>} values - The values to pack
* *
* @returns: {HexString} the hexstring of the hash
* @example: * @example:
* solidityPackedKeccak256([ "address", "uint" ], [ "0x1234", 45 ]); * solidityPackedKeccak256([ "address", "uint" ], [ "0x1234", 45 ]);
* //_result: * / /_result:
* *
* @see https://docs.soliditylang.org/en/v0.8.14/abi-spec.html#non-standard-packed-mode * @see https://docs.soliditylang.org/en/v0.8.14/abi-spec.html#non-standard-packed-mode
*/ */