privateHash()
Othent JS SDK privateHash() function
Last updated
Othent JS SDK privateHash() function
Last updated
The privateHash()
function allows you to create deterministic secrets (hashes) from some data.
This function assumes (and requires) a user is authenticated. See .
data: string | BinaryDataType
The data to hash.
options?: SignMessageOptions
The options
argument is optional. If it is not provided, the extension will use the SHA-256
hash algorithm.
return Promise<Uint8Array>
A Promise
containing a Uint8Array
with the hashed data.