Generates a hash (BLAKE3 wrapped in YASMF container) from any value.
Generated hash, encoded as hexadecimal string
import { generateHash } from 'p2panda-js';const result = generateHash('aabbcc');console.log(result); // "0020d5f1c831db4153ae65d0bd3edf6b88eb8f5c9985e35d5192e371f5b469eeb4c4"
Data encoded as hexadecimal string
Generated using TypeDoc
Generates a hash (BLAKE3 wrapped in YASMF container) from any value.
Returns
Generated hash, encoded as hexadecimal string
Example