@ocap/mcrypto 1.29.4 → 1.29.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/esm/_virtual/rolldown_runtime.mjs +32 -0
  2. package/esm/hasher/keccak.d.mts +1 -0
  3. package/esm/hasher/keccak.mjs +15 -5
  4. package/esm/hasher/sha2.d.mts +1 -0
  5. package/esm/hasher/sha2.mjs +8 -5
  6. package/esm/hasher/sha3.d.mts +1 -0
  7. package/esm/hasher/sha3.mjs +15 -5
  8. package/esm/node_modules/hash.js/lib/hash/common.mjs +77 -0
  9. package/esm/node_modules/hash.js/lib/hash/hmac.mjs +41 -0
  10. package/esm/node_modules/hash.js/lib/hash/ripemd.mjs +422 -0
  11. package/esm/node_modules/hash.js/lib/hash/sha/1.mjs +73 -0
  12. package/esm/node_modules/hash.js/lib/hash/sha/224.mjs +38 -0
  13. package/esm/node_modules/hash.js/lib/hash/sha/256.mjs +154 -0
  14. package/esm/node_modules/hash.js/lib/hash/sha/384.mjs +46 -0
  15. package/esm/node_modules/hash.js/lib/hash/sha/512.mjs +389 -0
  16. package/esm/node_modules/hash.js/lib/hash/sha/common.mjs +46 -0
  17. package/esm/node_modules/hash.js/lib/hash/sha.mjs +20 -0
  18. package/esm/node_modules/hash.js/lib/hash/utils.mjs +211 -0
  19. package/esm/node_modules/hash.js/lib/hash.mjs +27 -0
  20. package/esm/node_modules/inherits/inherits.mjs +20 -0
  21. package/esm/node_modules/inherits/inherits_browser.mjs +30 -0
  22. package/esm/node_modules/minimalistic-assert/index.mjs +17 -0
  23. package/esm/signer/ed25519.d.mts +1 -1
  24. package/esm/signer/ed25519.mjs +19 -12
  25. package/lib/_virtual/rolldown_runtime.cjs +2 -0
  26. package/lib/hasher/keccak.cjs +15 -6
  27. package/lib/hasher/keccak.d.cts +1 -0
  28. package/lib/hasher/sha2.cjs +12 -8
  29. package/lib/hasher/sha2.d.cts +1 -0
  30. package/lib/hasher/sha3.cjs +15 -6
  31. package/lib/hasher/sha3.d.cts +1 -0
  32. package/lib/node_modules/hash.js/lib/hash/common.cjs +82 -0
  33. package/lib/node_modules/hash.js/lib/hash/hmac.cjs +46 -0
  34. package/lib/node_modules/hash.js/lib/hash/ripemd.cjs +427 -0
  35. package/lib/node_modules/hash.js/lib/hash/sha/1.cjs +78 -0
  36. package/lib/node_modules/hash.js/lib/hash/sha/224.cjs +43 -0
  37. package/lib/node_modules/hash.js/lib/hash/sha/256.cjs +159 -0
  38. package/lib/node_modules/hash.js/lib/hash/sha/384.cjs +51 -0
  39. package/lib/node_modules/hash.js/lib/hash/sha/512.cjs +394 -0
  40. package/lib/node_modules/hash.js/lib/hash/sha/common.cjs +51 -0
  41. package/lib/node_modules/hash.js/lib/hash/sha.cjs +25 -0
  42. package/lib/node_modules/hash.js/lib/hash/utils.cjs +216 -0
  43. package/lib/node_modules/hash.js/lib/hash.cjs +30 -0
  44. package/lib/node_modules/inherits/inherits.cjs +23 -0
  45. package/lib/node_modules/inherits/inherits_browser.cjs +33 -0
  46. package/lib/node_modules/minimalistic-assert/index.cjs +20 -0
  47. package/lib/signer/ed25519.cjs +19 -13
  48. package/lib/signer/ed25519.d.cts +1 -1
  49. package/package.json +8 -8
@@ -0,0 +1,216 @@
1
+ 'use strict';
2
+
3
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
4
+ const require_index = require('../../../minimalistic-assert/index.cjs');
5
+ const require_inherits$1 = require('../../../inherits/inherits.cjs');
6
+
7
+ //#region ../../node_modules/hash.js/lib/hash/utils.js
8
+ var require_utils = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
9
+ var assert = require_index.default;
10
+ var inherits = require_inherits$1.default;
11
+ exports.inherits = inherits;
12
+ function isSurrogatePair(msg, i) {
13
+ if ((msg.charCodeAt(i) & 64512) !== 55296) return false;
14
+ if (i < 0 || i + 1 >= msg.length) return false;
15
+ return (msg.charCodeAt(i + 1) & 64512) === 56320;
16
+ }
17
+ function toArray(msg, enc) {
18
+ if (Array.isArray(msg)) return msg.slice();
19
+ if (!msg) return [];
20
+ var res = [];
21
+ if (typeof msg === "string") {
22
+ if (!enc) {
23
+ var p = 0;
24
+ for (var i = 0; i < msg.length; i++) {
25
+ var c = msg.charCodeAt(i);
26
+ if (c < 128) res[p++] = c;
27
+ else if (c < 2048) {
28
+ res[p++] = c >> 6 | 192;
29
+ res[p++] = c & 63 | 128;
30
+ } else if (isSurrogatePair(msg, i)) {
31
+ c = 65536 + ((c & 1023) << 10) + (msg.charCodeAt(++i) & 1023);
32
+ res[p++] = c >> 18 | 240;
33
+ res[p++] = c >> 12 & 63 | 128;
34
+ res[p++] = c >> 6 & 63 | 128;
35
+ res[p++] = c & 63 | 128;
36
+ } else {
37
+ res[p++] = c >> 12 | 224;
38
+ res[p++] = c >> 6 & 63 | 128;
39
+ res[p++] = c & 63 | 128;
40
+ }
41
+ }
42
+ } else if (enc === "hex") {
43
+ msg = msg.replace(/[^a-z0-9]+/gi, "");
44
+ if (msg.length % 2 !== 0) msg = "0" + msg;
45
+ for (i = 0; i < msg.length; i += 2) res.push(parseInt(msg[i] + msg[i + 1], 16));
46
+ }
47
+ } else for (i = 0; i < msg.length; i++) res[i] = msg[i] | 0;
48
+ return res;
49
+ }
50
+ exports.toArray = toArray;
51
+ function toHex(msg) {
52
+ var res = "";
53
+ for (var i = 0; i < msg.length; i++) res += zero2(msg[i].toString(16));
54
+ return res;
55
+ }
56
+ exports.toHex = toHex;
57
+ function htonl(w) {
58
+ return (w >>> 24 | w >>> 8 & 65280 | w << 8 & 16711680 | (w & 255) << 24) >>> 0;
59
+ }
60
+ exports.htonl = htonl;
61
+ function toHex32(msg, endian) {
62
+ var res = "";
63
+ for (var i = 0; i < msg.length; i++) {
64
+ var w = msg[i];
65
+ if (endian === "little") w = htonl(w);
66
+ res += zero8(w.toString(16));
67
+ }
68
+ return res;
69
+ }
70
+ exports.toHex32 = toHex32;
71
+ function zero2(word) {
72
+ if (word.length === 1) return "0" + word;
73
+ else return word;
74
+ }
75
+ exports.zero2 = zero2;
76
+ function zero8(word) {
77
+ if (word.length === 7) return "0" + word;
78
+ else if (word.length === 6) return "00" + word;
79
+ else if (word.length === 5) return "000" + word;
80
+ else if (word.length === 4) return "0000" + word;
81
+ else if (word.length === 3) return "00000" + word;
82
+ else if (word.length === 2) return "000000" + word;
83
+ else if (word.length === 1) return "0000000" + word;
84
+ else return word;
85
+ }
86
+ exports.zero8 = zero8;
87
+ function join32(msg, start, end, endian) {
88
+ var len = end - start;
89
+ assert(len % 4 === 0);
90
+ var res = new Array(len / 4);
91
+ for (var i = 0, k = start; i < res.length; i++, k += 4) {
92
+ var w;
93
+ if (endian === "big") w = msg[k] << 24 | msg[k + 1] << 16 | msg[k + 2] << 8 | msg[k + 3];
94
+ else w = msg[k + 3] << 24 | msg[k + 2] << 16 | msg[k + 1] << 8 | msg[k];
95
+ res[i] = w >>> 0;
96
+ }
97
+ return res;
98
+ }
99
+ exports.join32 = join32;
100
+ function split32(msg, endian) {
101
+ var res = new Array(msg.length * 4);
102
+ for (var i = 0, k = 0; i < msg.length; i++, k += 4) {
103
+ var m = msg[i];
104
+ if (endian === "big") {
105
+ res[k] = m >>> 24;
106
+ res[k + 1] = m >>> 16 & 255;
107
+ res[k + 2] = m >>> 8 & 255;
108
+ res[k + 3] = m & 255;
109
+ } else {
110
+ res[k + 3] = m >>> 24;
111
+ res[k + 2] = m >>> 16 & 255;
112
+ res[k + 1] = m >>> 8 & 255;
113
+ res[k] = m & 255;
114
+ }
115
+ }
116
+ return res;
117
+ }
118
+ exports.split32 = split32;
119
+ function rotr32(w, b) {
120
+ return w >>> b | w << 32 - b;
121
+ }
122
+ exports.rotr32 = rotr32;
123
+ function rotl32(w, b) {
124
+ return w << b | w >>> 32 - b;
125
+ }
126
+ exports.rotl32 = rotl32;
127
+ function sum32(a, b) {
128
+ return a + b >>> 0;
129
+ }
130
+ exports.sum32 = sum32;
131
+ function sum32_3(a, b, c) {
132
+ return a + b + c >>> 0;
133
+ }
134
+ exports.sum32_3 = sum32_3;
135
+ function sum32_4(a, b, c, d) {
136
+ return a + b + c + d >>> 0;
137
+ }
138
+ exports.sum32_4 = sum32_4;
139
+ function sum32_5(a, b, c, d, e) {
140
+ return a + b + c + d + e >>> 0;
141
+ }
142
+ exports.sum32_5 = sum32_5;
143
+ function sum64(buf, pos, ah, al) {
144
+ var bh = buf[pos];
145
+ var lo = al + buf[pos + 1] >>> 0;
146
+ buf[pos] = (lo < al ? 1 : 0) + ah + bh >>> 0;
147
+ buf[pos + 1] = lo;
148
+ }
149
+ exports.sum64 = sum64;
150
+ function sum64_hi(ah, al, bh, bl) {
151
+ return (al + bl >>> 0 < al ? 1 : 0) + ah + bh >>> 0;
152
+ }
153
+ exports.sum64_hi = sum64_hi;
154
+ function sum64_lo(ah, al, bh, bl) {
155
+ return al + bl >>> 0;
156
+ }
157
+ exports.sum64_lo = sum64_lo;
158
+ function sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {
159
+ var carry = 0;
160
+ var lo = al;
161
+ lo = lo + bl >>> 0;
162
+ carry += lo < al ? 1 : 0;
163
+ lo = lo + cl >>> 0;
164
+ carry += lo < cl ? 1 : 0;
165
+ lo = lo + dl >>> 0;
166
+ carry += lo < dl ? 1 : 0;
167
+ return ah + bh + ch + dh + carry >>> 0;
168
+ }
169
+ exports.sum64_4_hi = sum64_4_hi;
170
+ function sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {
171
+ return al + bl + cl + dl >>> 0;
172
+ }
173
+ exports.sum64_4_lo = sum64_4_lo;
174
+ function sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
175
+ var carry = 0;
176
+ var lo = al;
177
+ lo = lo + bl >>> 0;
178
+ carry += lo < al ? 1 : 0;
179
+ lo = lo + cl >>> 0;
180
+ carry += lo < cl ? 1 : 0;
181
+ lo = lo + dl >>> 0;
182
+ carry += lo < dl ? 1 : 0;
183
+ lo = lo + el >>> 0;
184
+ carry += lo < el ? 1 : 0;
185
+ return ah + bh + ch + dh + eh + carry >>> 0;
186
+ }
187
+ exports.sum64_5_hi = sum64_5_hi;
188
+ function sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
189
+ return al + bl + cl + dl + el >>> 0;
190
+ }
191
+ exports.sum64_5_lo = sum64_5_lo;
192
+ function rotr64_hi(ah, al, num) {
193
+ return (al << 32 - num | ah >>> num) >>> 0;
194
+ }
195
+ exports.rotr64_hi = rotr64_hi;
196
+ function rotr64_lo(ah, al, num) {
197
+ return (ah << 32 - num | al >>> num) >>> 0;
198
+ }
199
+ exports.rotr64_lo = rotr64_lo;
200
+ function shr64_hi(ah, al, num) {
201
+ return ah >>> num;
202
+ }
203
+ exports.shr64_hi = shr64_hi;
204
+ function shr64_lo(ah, al, num) {
205
+ return (ah << 32 - num | al >>> num) >>> 0;
206
+ }
207
+ exports.shr64_lo = shr64_lo;
208
+ }));
209
+
210
+ //#endregion
211
+ Object.defineProperty(exports, 'default', {
212
+ enumerable: true,
213
+ get: function () {
214
+ return require_utils();
215
+ }
216
+ });
@@ -0,0 +1,30 @@
1
+ const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
+ const require_utils$1 = require('./hash/utils.cjs');
3
+ const require_common$1 = require('./hash/common.cjs');
4
+ const require_sha$1 = require('./hash/sha.cjs');
5
+ const require_ripemd$1 = require('./hash/ripemd.cjs');
6
+ const require_hmac$1 = require('./hash/hmac.cjs');
7
+
8
+ //#region ../../node_modules/hash.js/lib/hash.js
9
+ var require_hash = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
10
+ var hash = exports;
11
+ hash.utils = require_utils$1.default;
12
+ hash.common = require_common$1.default;
13
+ hash.sha = require_sha$1.default;
14
+ hash.ripemd = require_ripemd$1.default;
15
+ hash.hmac = require_hmac$1.default;
16
+ hash.sha1 = hash.sha.sha1;
17
+ hash.sha256 = hash.sha.sha256;
18
+ hash.sha224 = hash.sha.sha224;
19
+ hash.sha384 = hash.sha.sha384;
20
+ hash.sha512 = hash.sha.sha512;
21
+ hash.ripemd160 = hash.ripemd.ripemd160;
22
+ }));
23
+
24
+ //#endregion
25
+ Object.defineProperty(exports, 'default', {
26
+ enumerable: true,
27
+ get: function () {
28
+ return require_hash();
29
+ }
30
+ });
@@ -0,0 +1,23 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const require_inherits_browser$1 = require('./inherits_browser.cjs');
3
+
4
+ //#region ../../node_modules/inherits/inherits.js
5
+ var require_inherits = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
6
+ try {
7
+ var util = require("util");
8
+ /* istanbul ignore next */
9
+ if (typeof util.inherits !== "function") throw "";
10
+ module.exports = util.inherits;
11
+ } catch (e) {
12
+ /* istanbul ignore next */
13
+ module.exports = require_inherits_browser$1.default;
14
+ }
15
+ }));
16
+
17
+ //#endregion
18
+ Object.defineProperty(exports, 'default', {
19
+ enumerable: true,
20
+ get: function () {
21
+ return require_inherits();
22
+ }
23
+ });
@@ -0,0 +1,33 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+
3
+ //#region ../../node_modules/inherits/inherits_browser.js
4
+ var require_inherits_browser = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
5
+ if (typeof Object.create === "function") module.exports = function inherits(ctor, superCtor) {
6
+ if (superCtor) {
7
+ ctor.super_ = superCtor;
8
+ ctor.prototype = Object.create(superCtor.prototype, { constructor: {
9
+ value: ctor,
10
+ enumerable: false,
11
+ writable: true,
12
+ configurable: true
13
+ } });
14
+ }
15
+ };
16
+ else module.exports = function inherits(ctor, superCtor) {
17
+ if (superCtor) {
18
+ ctor.super_ = superCtor;
19
+ var TempCtor = function() {};
20
+ TempCtor.prototype = superCtor.prototype;
21
+ ctor.prototype = new TempCtor();
22
+ ctor.prototype.constructor = ctor;
23
+ }
24
+ };
25
+ }));
26
+
27
+ //#endregion
28
+ Object.defineProperty(exports, 'default', {
29
+ enumerable: true,
30
+ get: function () {
31
+ return require_inherits_browser();
32
+ }
33
+ });
@@ -0,0 +1,20 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+
3
+ //#region ../../node_modules/minimalistic-assert/index.js
4
+ var require_minimalistic_assert = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
5
+ module.exports = assert;
6
+ function assert(val, msg) {
7
+ if (!val) throw new Error(msg || "Assertion failed");
8
+ }
9
+ assert.equal = function assertEqual(l, r, msg) {
10
+ if (l != r) throw new Error(msg || "Assertion failed: " + l + " != " + r);
11
+ };
12
+ }));
13
+
14
+ //#endregion
15
+ Object.defineProperty(exports, 'default', {
16
+ enumerable: true,
17
+ get: function () {
18
+ return require_minimalistic_assert();
19
+ }
20
+ });
@@ -1,17 +1,19 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
3
3
  const require_encode = require('../encode.cjs');
4
+ const require_hash$1 = require('../node_modules/hash.js/lib/hash.cjs');
4
5
  const require_protocols_signer = require('../protocols/signer.cjs');
5
6
  let _ocap_util = require("@ocap/util");
6
7
  let randombytes = require("randombytes");
7
8
  randombytes = require_rolldown_runtime.__toESM(randombytes);
8
- let tweetnacl = require("tweetnacl");
9
- tweetnacl = require_rolldown_runtime.__toESM(tweetnacl);
9
+ let _noble_ed25519 = require("@noble/ed25519");
10
+ _noble_ed25519 = require_rolldown_runtime.__toESM(_noble_ed25519);
10
11
 
11
12
  //#region src/signer/ed25519.ts
12
- const ed25519 = tweetnacl.default.sign;
13
+ var import_hash = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_hash$1.default, 1);
14
+ _noble_ed25519.hashes.sha512 = (msg) => new Uint8Array(import_hash.default.sha512().update(msg).digest());
13
15
  /**
14
- * Signer implementation for ed25519, based on `tweetnacl`
16
+ * Signer implementation for ed25519, based on `@noble/ed25519`
15
17
  *
16
18
  * @class Ed25519Signer
17
19
  */
@@ -34,10 +36,14 @@ var Ed25519Signer = class extends require_protocols_signer.default {
34
36
  genKeyPair(encoding = "hex", userSeed) {
35
37
  const seed = userSeed ? (0, _ocap_util.toUint8Array)(userSeed) : new Uint8Array((0, randombytes.default)(32));
36
38
  if (seed.byteLength !== 32) throw new Error("Invalid seed to generate key pair");
37
- const keyPair = ed25519.keyPair.fromSeed(seed);
38
- keyPair.publicKey = require_encode.encode(keyPair.publicKey, encoding);
39
- keyPair.secretKey = require_encode.encode(keyPair.secretKey, encoding);
40
- return keyPair;
39
+ const publicKey = _noble_ed25519.getPublicKey(seed);
40
+ const secretKey = new Uint8Array(64);
41
+ secretKey.set(seed);
42
+ secretKey.set(publicKey, 32);
43
+ return {
44
+ publicKey: require_encode.encode(publicKey, encoding),
45
+ secretKey: require_encode.encode(secretKey, encoding)
46
+ };
41
47
  }
42
48
  /**
43
49
  * Get publicKey from secretKey
@@ -47,8 +53,8 @@ var Ed25519Signer = class extends require_protocols_signer.default {
47
53
  */
48
54
  getPublicKey(sk, encoding = "hex") {
49
55
  const skBytes = (0, _ocap_util.toUint8Array)(sk);
50
- const pk = ed25519.keyPair.fromSecretKey(skBytes).publicKey;
51
- return require_encode.encode(pk, encoding);
56
+ if (skBytes.byteLength === 64) return require_encode.encode(skBytes.slice(32, 64), encoding);
57
+ return require_encode.encode(_noble_ed25519.getPublicKey(skBytes), encoding);
52
58
  }
53
59
  /**
54
60
  * Sign a message and get the signature hex
@@ -58,9 +64,9 @@ var Ed25519Signer = class extends require_protocols_signer.default {
58
64
  * @returns {string} hex encoded signature
59
65
  */
60
66
  sign(message, sk, encoding = "hex") {
61
- const skBytes = (0, _ocap_util.toUint8Array)(sk);
67
+ const seed = (0, _ocap_util.toUint8Array)(sk).slice(0, 32);
62
68
  const messageBytes = (0, _ocap_util.toUint8Array)(message);
63
- return require_encode.encode(ed25519.detached(messageBytes, skBytes), encoding);
69
+ return require_encode.encode(_noble_ed25519.sign(messageBytes, seed), encoding);
64
70
  }
65
71
  /**
66
72
  * Verify if a signature is valid
@@ -74,7 +80,7 @@ var Ed25519Signer = class extends require_protocols_signer.default {
74
80
  const pkBytes = (0, _ocap_util.toUint8Array)(pk);
75
81
  const messageBytes = (0, _ocap_util.toUint8Array)(message);
76
82
  const signatureBytes = (0, _ocap_util.toUint8Array)(signature);
77
- return ed25519.detached.verify(messageBytes, signatureBytes, pkBytes);
83
+ return _noble_ed25519.verify(signatureBytes, messageBytes, pkBytes);
78
84
  }
79
85
  };
80
86
  var ed25519_default = new Ed25519Signer();
@@ -4,7 +4,7 @@ import { BytesType, EncodingType, KeyPairType } from "@ocap/util";
4
4
  //#region src/signer/ed25519.d.ts
5
5
 
6
6
  /**
7
- * Signer implementation for ed25519, based on `tweetnacl`
7
+ * Signer implementation for ed25519, based on `@noble/ed25519`
8
8
  *
9
9
  * @class Ed25519Signer
10
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/mcrypto",
3
- "version": "1.29.4",
3
+ "version": "1.29.6",
4
4
  "type": "module",
5
5
  "description": "Crypto lib that provides signer,crypter,hasher interface",
6
6
  "keywords": [
@@ -48,7 +48,7 @@
48
48
  "esm"
49
49
  ],
50
50
  "devDependencies": {
51
- "@ocap/e2e-test": "1.29.4",
51
+ "@ocap/e2e-test": "1.29.6",
52
52
  "@types/crypto-js": "^4.2.2",
53
53
  "@types/elliptic": "^6.4.18",
54
54
  "@types/node": "^22.7.5",
@@ -67,23 +67,23 @@
67
67
  "test": "bun test",
68
68
  "coverage": "npm run test -- --coverage",
69
69
  "build": "tsdown",
70
- "build:watch": "tsdown -w"
70
+ "build:watch": "tsdown -w",
71
+ "clean": "rm -rf lib esm"
71
72
  },
72
73
  "bugs": {
73
74
  "url": "https://github.com/ArcBlock/blockchain/issues"
74
75
  },
75
76
  "dependencies": {
76
- "@ocap/util": "1.29.4",
77
+ "@noble/ed25519": "^3.0.0",
78
+ "@noble/hashes": "^2.0.1",
79
+ "@ocap/util": "1.29.6",
77
80
  "@simplewebauthn/server": "^13.0.0",
78
81
  "bn.js": "5.2.2",
79
82
  "crypto-js": "^4.2.0",
80
83
  "elliptic": "^6.6.1",
81
84
  "eth-lib": "^0.2.8",
82
- "hash.js": "^1.1.7",
83
85
  "interface": "^1.2.1",
84
- "js-sha3": "^0.8.0",
85
- "randombytes": "^2.1.0",
86
- "tweetnacl": "^1.0.3"
86
+ "randombytes": "^2.1.0"
87
87
  },
88
88
  "resolutions": {
89
89
  "bn.js": "5.2.2",