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.
Uint8Array
ArrayBuffer
crypto.subtle.digest()
Uint8Array<ArrayBuffer>
const digest: Bytes = await crypto.subtle.digest("SHA-256", data); Copy
const digest: Bytes = await crypto.subtle.digest("SHA-256", data);
Bytes the SDK accepts: a
Uint8Array(only its view is read) or anArrayBuffer, such ascrypto.subtle.digest()returns. The SDK always gives bytes back asUint8Array<ArrayBuffer>, which WebCrypto accepts as is.