summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/toHash.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/helpers/toHash.ts')
-rw-r--r--packages/server/src/helpers/toHash.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/helpers/toHash.ts b/packages/server/src/helpers/toHash.ts
index bd5bfea..31845ba 100644
--- a/packages/server/src/helpers/toHash.ts
+++ b/packages/server/src/helpers/toHash.ts
@@ -5,7 +5,7 @@ import { isoUint8Array, isoCrypto } from './iso/index.ts';
* Returns hash digest of the given data, using the given algorithm when provided. Defaults to using
* SHA-256.
*/
-export async function toHash(
+export function toHash(
data: Uint8Array | string,
algorithm: COSEALG = -7,
): Promise<Uint8Array> {