pamoja for TypeScript - v0.1.17
    Preparing search index...

    Function imageDigest

    • Hashes a complete image, for a publisher filling in a manifest.

      The manifest commits to a SHA-256 over the image, and this is that hash, so a publisher does not need a hashing library of its own just to name the image it is releasing.

      Parameters

      • image: Uint8Array

        The complete image the release carries.

      Returns Buffer

      The 32-byte digest to put in a Manifest.