@websign/sdk - v0.1.0
    Preparing search index...

    Type Alias Bytes

    Bytes: Uint8Array | ArrayBuffer

    Bytes the SDK accepts: a Uint8Array (only its view is read) or an ArrayBuffer, such as crypto.subtle.digest() returns. The SDK always gives bytes back as Uint8Array<ArrayBuffer>, which WebCrypto accepts as is.

    const digest: Bytes = await crypto.subtle.digest("SHA-256", data);