Quai Network Docs home page
English
What can I build on Quai?
⌘K
Ask AI
Developer Discord
Search...
Navigation
Hash
id
Learn
Build
SDK
Client
Guides
Get Involved
Getting Started
Introduction
Fundamentals
Addresses
Smart Contracts
Network Providers
Transactions
Wallets
Examples
Reference
Address
Application Binary Interface
Constants
Contract
Crypto
Encoding
Hash
TypedDataEncoder
TypedDataDomain
TypedDataField
hashMessage
id
solidityPacked
solidityPackedKeccak256
solidityPackedSha256
verifyMessage
verifyTypedData
Other
Providers
Signers
Transaction
Utils
Wallet
Wordlists
On this page
Parameters
Returns
Example
Source
Hash
id
Copy
Ask AI
function
id
(
value
)
:
string
A simple hashing function which operates on UTF-8 strings to compute an 32-byte identifier.
This simply computes the
UTF-8 bytes
and computes the
keccak256
.
Parameters
Parameter
Type
Description
value
string
The string to hash.
Returns
string
The 32-byte identifier.
Example
Copy
Ask AI
id
(
'hello world'
);
Source
hash/id.ts:19
Was this page helpful?
Yes
No
Suggest edits
Raise issue
hashMessage
solidityPacked
Assistant
Responses are generated using AI and may contain mistakes.