We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cbed7a commit 8961a54Copy full SHA for 8961a54
src/hashing.ts
@@ -17,7 +17,9 @@ export async function sha256(bytes: Uint8Array): Promise<Uint8Array> {
17
globalThis.crypto.subtle?.digest
18
) {
19
// eslint-disable-next-line no-restricted-globals
20
- return new Uint8Array(await globalThis.crypto.subtle.digest('SHA-256', bytes));
+ return new Uint8Array(
21
+ await globalThis.crypto.subtle.digest('SHA-256', bytes),
22
+ );
23
}
24
return nobleSha256(bytes);
25
0 commit comments