bytes32
bytes32(
value):Hash32
Defined in: src/Hash.ts:95
Compute the persistent hash of a 32-byte value.
Matches Compact’s persistentHash<Bytes<32>>() function.
Parameters
value
Uint8Array
A 32-byte Uint8Array
Returns
The hash as a 32-byte Uint8Array
Example
const bytes = Midday.Hash.stringToBytes32('secret');const hash = Midday.Hash.bytes32(bytes);Since
0.3.0