diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-16 12:47:19 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-08-16 12:47:19 -0700 |
commit | c7610cfef0490d43c0d6a35d3af6d4a461120f08 (patch) | |
tree | 4f4cce3483c57a305988e83a5c8f2ec489d9ea6c /packages/server/src/helpers/toHash.ts | |
parent | 44d009ea9f23da7ec7ebbb42cef5e604e18395a7 (diff) |
Address `deno lint` issues
Diffstat (limited to 'packages/server/src/helpers/toHash.ts')
-rw-r--r-- | packages/server/src/helpers/toHash.ts | 2 |
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> { |