Blockchain Commons Components TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function digestFromBytes

    • Helper function to get a digest from a byte array. This provides DigestProvider-like functionality for raw bytes.

      Parameters

      • data: Uint8Array

        The byte array to hash

      Returns Promise<Digest>

      A Promise resolving to a Digest of the data