Function generateHash

  • Generates a hash (BLAKE3 wrapped in YASMF container) from any value.

    Returns

    Generated hash, encoded as hexadecimal string

    Example

    import { generateHash } from 'p2panda-js';

    const result = generateHash('aabbcc');
    console.log(result); // "0020d5f1c831db4153ae65d0bd3edf6b88eb8f5c9985e35d5192e371f5b469eeb4c4"

    Parameters

    • value: string

      Data encoded as hexadecimal string

    Returns string

Generated using TypeDoc