From 1c424fdf1d7305f0f22cb23fb39f2380e0d2d0a0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Jan 2025 17:38:43 +0000 Subject: [PATCH] Bump @noble/hashes from 1.6.1 to 1.7.0 (#1072) * Bump @noble/hashes from 1.6.1 to 1.7.0 Bumps [@noble/hashes](https://github.com/paulmillr/noble-hashes) from 1.6.1 to 1.7.0. - [Release notes](https://github.com/paulmillr/noble-hashes/releases) - [Commits](https://github.com/paulmillr/noble-hashes/compare/1.6.1...1.7.0) --- updated-dependencies: - dependency-name: "@noble/hashes" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fix type of turboshake128 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Cook --- package-lock.json | 9 ++++----- packages/xof/package.json | 2 +- packages/xof/src/turboshake.ts | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index b5bd9b9b3..2db915c91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -943,10 +943,9 @@ } }, "node_modules/@noble/hashes": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.6.1.tgz", - "integrity": "sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w==", - "license": "MIT", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.0.tgz", + "integrity": "sha512-HXydb0DgzTpDPwbVeDGCG1gIu7X6+AuU6Zl6av/E/KG8LMsvPntvq+w17CHRpKBmN6Ybdrt1eP3k4cj8DJa78w==", "engines": { "node": "^14.21.3 || >=16" }, @@ -4592,7 +4591,7 @@ "dependencies": { "@divviup/common": "^0.2.2", "@divviup/field": "^0.2.1", - "@noble/hashes": "^1.6.1", + "@noble/hashes": "^1.7.0", "jssha": "^3.3.1" } } diff --git a/packages/xof/package.json b/packages/xof/package.json index 1b003a3d0..edfd1d173 100644 --- a/packages/xof/package.json +++ b/packages/xof/package.json @@ -21,7 +21,7 @@ "dependencies": { "@divviup/common": "^0.2.2", "@divviup/field": "^0.2.1", - "@noble/hashes": "^1.6.1", + "@noble/hashes": "^1.7.0", "jssha": "^3.3.1" } } diff --git a/packages/xof/src/turboshake.ts b/packages/xof/src/turboshake.ts index e23092ff4..1bface160 100644 --- a/packages/xof/src/turboshake.ts +++ b/packages/xof/src/turboshake.ts @@ -6,7 +6,7 @@ import type { Keccak } from "@noble/hashes/sha3"; export const XofTurboShake128: XofConstructor = class XofTurboShake128 extends Xof { static seedSize = 16; - #hash: HashXOF>; + #hash: HashXOF>>; constructor(seed: Uint8Array, dst: Uint8Array, binder: Uint8Array) { super();