Quai Network Docs home page
简体中文
What can I build on Quai?
⌘K
Ask AI
Developer Discord
搜索...
Navigation
Hash
id
学习
构建
SDK
客户端
指南
参与贡献
入门指南
Introduction
基础知识
Addresses
Smart Contracts
Network Providers
Transactions
Wallets
示例
参考
Address
Application Binary Interface
Constants
Contract
Crypto
Encoding
Hash
TypedDataEncoder
TypedDataDomain
TypedDataField
hashMessage
id
solidityPacked
solidityPackedKeccak256
solidityPackedSha256
verifyMessage
verifyTypedData
其他
Providers
Signers
Transaction
Utils
钱包
Wordlists
在此页面
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
此页面对您有帮助吗?
是
否
建议编辑
提出问题
hashMessage
solidityPacked
助手
Responses are generated using AI and may contain mistakes.