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.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/server/src/helpers/toHash.ts b/packages/server/src/helpers/toHash.ts
index 90edd4e..d9dbda3 100644
--- a/packages/server/src/helpers/toHash.ts
+++ b/packages/server/src/helpers/toHash.ts
@@ -1,11 +1,11 @@
-import { COSEALG } from './cose';
-import { isoUint8Array, isoCrypto } from './iso';
+import { COSEALG } from './cose.ts';
+import { isoCrypto, isoUint8Array } 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> {