From 0f427a08d064c290cb854bc4da26a50d29733f0e Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 24 Mar 2023 09:32:25 +0000 Subject: [PATCH] Update devdep --- index.js | 2 +- package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 2e45149..e7fbbd1 100644 --- a/index.js +++ b/index.js @@ -243,7 +243,7 @@ const hash2extK = (hashed) => { const pointBytes = point.toRawBytes(); // point serialized to Uint8Array return { head, prefix, scalar, point, pointBytes }; }; -// RFC8032 5.1.5; getPublicKey async, sync +// RFC8032 5.1.5; getPublicKey async, sync. Hash priv key and extract point. const getExtendedPublicKeyAsync = (priv) => sha512a(toU8(priv, 32)).then(hash2extK); const getExtendedPublicKey = (priv) => hash2extK(sha512s(toU8(priv, 32))); const getPublicKeyAsync = (priv) => getExtendedPublicKeyAsync(priv).then(p => p.pointBytes); diff --git a/package-lock.json b/package-lock.json index 3444147..25ee8e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ ], "license": "MIT", "devDependencies": { - "@noble/hashes": "1.2.0", + "@noble/hashes": "1.3.0", "fast-check": "3.0.0", "micro-bmark": "0.3.0", "micro-should": "0.4.0", @@ -23,9 +23,9 @@ } }, "node_modules/@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", + "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", "dev": true, "funding": [ { diff --git a/package.json b/package.json index f142b0a..27e0737 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "license": "MIT", "devDependencies": { - "@noble/hashes": "1.2.0", + "@noble/hashes": "1.3.0", "fast-check": "3.0.0", "micro-bmark": "0.3.0", "micro-should": "0.4.0",