@waku/rln 0.1.5-db38a7e.0 → 0.1.5-e31c6fc.0

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 (130) hide show
  1. package/bundle/_virtual/utils.js +2 -2
  2. package/bundle/_virtual/utils2.js +2 -2
  3. package/bundle/index.js +2 -1
  4. package/bundle/packages/rln/dist/contract/constants.js +5 -1
  5. package/bundle/packages/rln/dist/contract/rln_base_contract.js +18 -24
  6. package/bundle/packages/rln/dist/contract/rln_contract.js +1 -1
  7. package/bundle/packages/rln/dist/utils/bytes.js +8 -2
  8. package/bundle/packages/rln/dist/utils/metamask.js +2 -2
  9. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/random.js +1 -1
  10. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/utils.js +2 -2
  11. package/bundle/packages/rln/node_modules/@noble/hashes/_sha2.js +1 -1
  12. package/bundle/packages/rln/node_modules/@noble/hashes/hmac.js +1 -1
  13. package/bundle/packages/rln/node_modules/@noble/hashes/pbkdf2.js +1 -1
  14. package/bundle/packages/rln/node_modules/@noble/hashes/scrypt.js +1 -1
  15. package/bundle/packages/rln/node_modules/@noble/hashes/sha256.js +1 -1
  16. package/bundle/packages/rln/node_modules/@noble/hashes/sha512.js +1 -1
  17. package/bundle/packages/rln/node_modules/@noble/hashes/utils.js +1 -1
  18. package/dist/.tsbuildinfo +1 -1
  19. package/dist/contract/index.d.ts +1 -0
  20. package/dist/contract/index.js +1 -0
  21. package/dist/contract/index.js.map +1 -1
  22. package/dist/contract/rln_base_contract.d.ts +4 -4
  23. package/dist/contract/rln_base_contract.js +16 -22
  24. package/dist/contract/rln_base_contract.js.map +1 -1
  25. package/dist/index.d.ts +2 -1
  26. package/dist/index.js +1 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/keystore/keystore.js.map +1 -1
  29. package/dist/keystore/types.d.ts +2 -2
  30. package/dist/utils/bytes.js +8 -2
  31. package/dist/utils/bytes.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/contract/index.ts +1 -0
  34. package/src/contract/rln_base_contract.ts +22 -30
  35. package/src/index.ts +3 -1
  36. package/src/keystore/keystore.ts +4 -2
  37. package/src/keystore/types.ts +2 -2
  38. package/src/utils/bytes.ts +10 -2
  39. package/bundle/_virtual/__node-resolve_empty.js +0 -6
  40. package/bundle/_virtual/_node-resolve_empty.js +0 -3
  41. package/bundle/_virtual/bn.js +0 -3
  42. package/bundle/_virtual/common.js +0 -3
  43. package/bundle/_virtual/common2.js +0 -3
  44. package/bundle/_virtual/hash.js +0 -3
  45. package/bundle/_virtual/inherits_browser.js +0 -3
  46. package/bundle/_virtual/ripemd.js +0 -3
  47. package/bundle/_virtual/sha.js +0 -3
  48. package/bundle/_virtual/sha3.js +0 -3
  49. package/bundle/_virtual/utils3.js +0 -3
  50. package/bundle/node_modules/@ethersproject/abi/lib.esm/_version.js +0 -3
  51. package/bundle/node_modules/@ethersproject/abi/lib.esm/abi-coder.js +0 -96
  52. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js +0 -148
  53. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/address.js +0 -26
  54. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js +0 -20
  55. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/array.js +0 -210
  56. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js +0 -18
  57. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js +0 -30
  58. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js +0 -26
  59. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/null.js +0 -22
  60. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/number.js +0 -43
  61. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/string.js +0 -19
  62. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js +0 -58
  63. package/bundle/node_modules/@ethersproject/abi/lib.esm/fragments.js +0 -854
  64. package/bundle/node_modules/@ethersproject/abi/lib.esm/interface.js +0 -609
  65. package/bundle/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js +0 -3
  66. package/bundle/node_modules/@ethersproject/abstract-provider/lib.esm/index.js +0 -66
  67. package/bundle/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js +0 -3
  68. package/bundle/node_modules/@ethersproject/abstract-signer/lib.esm/index.js +0 -302
  69. package/bundle/node_modules/@ethersproject/address/lib.esm/_version.js +0 -3
  70. package/bundle/node_modules/@ethersproject/address/lib.esm/index.js +0 -110
  71. package/bundle/node_modules/@ethersproject/base64/lib.esm/base64.js +0 -20
  72. package/bundle/node_modules/@ethersproject/basex/lib.esm/index.js +0 -120
  73. package/bundle/node_modules/@ethersproject/bignumber/lib.esm/_version.js +0 -3
  74. package/bundle/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js +0 -287
  75. package/bundle/node_modules/@ethersproject/bytes/lib.esm/_version.js +0 -3
  76. package/bundle/node_modules/@ethersproject/bytes/lib.esm/index.js +0 -402
  77. package/bundle/node_modules/@ethersproject/constants/lib.esm/addresses.js +0 -3
  78. package/bundle/node_modules/@ethersproject/constants/lib.esm/bignumbers.js +0 -8
  79. package/bundle/node_modules/@ethersproject/constants/lib.esm/hashes.js +0 -3
  80. package/bundle/node_modules/@ethersproject/contracts/lib.esm/_version.js +0 -3
  81. package/bundle/node_modules/@ethersproject/contracts/lib.esm/index.js +0 -893
  82. package/bundle/node_modules/@ethersproject/hash/lib.esm/_version.js +0 -3
  83. package/bundle/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js +0 -256
  84. package/bundle/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js +0 -36
  85. package/bundle/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js +0 -135
  86. package/bundle/node_modules/@ethersproject/hash/lib.esm/id.js +0 -8
  87. package/bundle/node_modules/@ethersproject/hash/lib.esm/namehash.js +0 -64
  88. package/bundle/node_modules/@ethersproject/hash/lib.esm/typed-data.js +0 -443
  89. package/bundle/node_modules/@ethersproject/keccak256/lib.esm/index.js +0 -8
  90. package/bundle/node_modules/@ethersproject/keccak256/node_modules/js-sha3/src/sha3.js +0 -660
  91. package/bundle/node_modules/@ethersproject/logger/lib.esm/_version.js +0 -3
  92. package/bundle/node_modules/@ethersproject/logger/lib.esm/index.js +0 -352
  93. package/bundle/node_modules/@ethersproject/networks/lib.esm/_version.js +0 -3
  94. package/bundle/node_modules/@ethersproject/networks/lib.esm/index.js +0 -248
  95. package/bundle/node_modules/@ethersproject/properties/lib.esm/_version.js +0 -3
  96. package/bundle/node_modules/@ethersproject/properties/lib.esm/index.js +0 -127
  97. package/bundle/node_modules/@ethersproject/providers/lib.esm/_version.js +0 -3
  98. package/bundle/node_modules/@ethersproject/providers/lib.esm/base-provider.js +0 -2007
  99. package/bundle/node_modules/@ethersproject/providers/lib.esm/formatter.js +0 -422
  100. package/bundle/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js +0 -674
  101. package/bundle/node_modules/@ethersproject/providers/lib.esm/web3-provider.js +0 -132
  102. package/bundle/node_modules/@ethersproject/rlp/lib.esm/_version.js +0 -3
  103. package/bundle/node_modules/@ethersproject/rlp/lib.esm/index.js +0 -120
  104. package/bundle/node_modules/@ethersproject/sha2/lib.esm/sha2.js +0 -8
  105. package/bundle/node_modules/@ethersproject/signing-key/lib.esm/_version.js +0 -3
  106. package/bundle/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js +0 -2430
  107. package/bundle/node_modules/@ethersproject/signing-key/lib.esm/index.js +0 -76
  108. package/bundle/node_modules/@ethersproject/strings/lib.esm/_version.js +0 -3
  109. package/bundle/node_modules/@ethersproject/strings/lib.esm/utf8.js +0 -219
  110. package/bundle/node_modules/@ethersproject/transactions/lib.esm/_version.js +0 -3
  111. package/bundle/node_modules/@ethersproject/transactions/lib.esm/index.js +0 -279
  112. package/bundle/node_modules/@ethersproject/web/lib.esm/_version.js +0 -3
  113. package/bundle/node_modules/@ethersproject/web/lib.esm/geturl.js +0 -69
  114. package/bundle/node_modules/@ethersproject/web/lib.esm/index.js +0 -404
  115. package/bundle/node_modules/bech32/index.js +0 -187
  116. package/bundle/node_modules/bn.js/lib/bn.js +0 -3361
  117. package/bundle/node_modules/hash.js/lib/hash/common.js +0 -97
  118. package/bundle/node_modules/hash.js/lib/hash/hmac.js +0 -51
  119. package/bundle/node_modules/hash.js/lib/hash/ripemd.js +0 -152
  120. package/bundle/node_modules/hash.js/lib/hash/sha/1.js +0 -81
  121. package/bundle/node_modules/hash.js/lib/hash/sha/224.js +0 -33
  122. package/bundle/node_modules/hash.js/lib/hash/sha/256.js +0 -113
  123. package/bundle/node_modules/hash.js/lib/hash/sha/384.js +0 -39
  124. package/bundle/node_modules/hash.js/lib/hash/sha/512.js +0 -336
  125. package/bundle/node_modules/hash.js/lib/hash/sha/common.js +0 -53
  126. package/bundle/node_modules/hash.js/lib/hash/sha.js +0 -14
  127. package/bundle/node_modules/hash.js/lib/hash/utils.js +0 -282
  128. package/bundle/node_modules/hash.js/lib/hash.js +0 -33
  129. package/bundle/node_modules/inherits/inherits_browser.js +0 -33
  130. package/bundle/node_modules/minimalistic-assert/index.js +0 -13
@@ -1,3 +1,3 @@
1
- var utils = {exports: {}};
1
+ var utils = {};
2
2
 
3
- export { utils as __module };
3
+ export { utils as __exports };
@@ -1,3 +1,3 @@
1
- var utils = {};
1
+ var utils = {exports: {}};
2
2
 
3
- export { utils as __exports };
3
+ export { utils as __module };
package/bundle/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  export { RLNDecoder, RLNEncoder } from './packages/rln/dist/codec.js';
2
2
  export { RLN_ABI } from './packages/rln/dist/contract/abi.js';
3
3
  export { RLNContract } from './packages/rln/dist/contract/rln_contract.js';
4
- export { LINEA_CONTRACT } from './packages/rln/dist/contract/constants.js';
4
+ export { DEFAULT_RATE_LIMIT, LINEA_CONTRACT, RATE_LIMIT_PARAMS, RATE_LIMIT_TIERS } from './packages/rln/dist/contract/constants.js';
5
+ export { MembershipState } from './packages/rln/dist/contract/types.js';
5
6
  export { RLNBaseContract } from './packages/rln/dist/contract/rln_base_contract.js';
6
7
  export { createRLN } from './packages/rln/dist/create.js';
7
8
  export { RLNCredentialsManager } from './packages/rln/dist/credentials_manager.js';
@@ -12,12 +12,16 @@ const LINEA_CONTRACT = {
12
12
  */
13
13
  const RATE_LIMIT_TIERS = {
14
14
  LOW: 20, // Suggested minimum rate - 20 messages per epoch
15
+ MEDIUM: 200,
15
16
  HIGH: 600 // Suggested maximum rate - 600 messages per epoch
16
17
  };
17
18
  // Global rate limit parameters
18
19
  const RATE_LIMIT_PARAMS = {
19
20
  MIN_RATE: RATE_LIMIT_TIERS.LOW,
20
- MAX_RATE: RATE_LIMIT_TIERS.HIGH};
21
+ MAX_RATE: RATE_LIMIT_TIERS.HIGH,
22
+ MAX_TOTAL_RATE: 160_000, // Maximum total rate limit across all memberships
23
+ EPOCH_LENGTH: 600 // Epoch length in seconds (10 minutes)
24
+ };
21
25
  const DEFAULT_RATE_LIMIT = RATE_LIMIT_PARAMS.MAX_RATE;
22
26
 
23
27
  export { DEFAULT_RATE_LIMIT, LINEA_CONTRACT, RATE_LIMIT_PARAMS, RATE_LIMIT_TIERS };
@@ -16,10 +16,9 @@ import { Logger } from '../../../utils/dist/logger/index.js';
16
16
  import { RLN_ABI } from './abi.js';
17
17
  import { DEFAULT_RATE_LIMIT, RATE_LIMIT_PARAMS } from './constants.js';
18
18
  import { MembershipState } from './types.js';
19
- import { Contract } from '../../../../node_modules/@ethersproject/contracts/lib.esm/index.js';
20
- import { BigNumber } from '../../../../node_modules/@ethersproject/bignumber/lib.esm/bignumber.js';
19
+ import { Contract } from '@ethersproject/contracts';
20
+ import { BigNumber } from '@ethersproject/bignumber';
21
21
 
22
- /* eslint-disable no-console */
23
22
  const log = new Logger("waku:rln:contract:base");
24
23
  class RLNBaseContract {
25
24
  contract;
@@ -262,13 +261,10 @@ class RLNBaseContract {
262
261
  }
263
262
  async getMembershipInfo(idCommitmentBigInt) {
264
263
  try {
265
- console.log("idCommitmentBigInt", idCommitmentBigInt);
266
264
  const membershipData = await this.contract.memberships(idCommitmentBigInt);
267
265
  const currentBlock = await this.contract.provider.getBlockNumber();
268
- console.log("membershipData", membershipData);
269
266
  const [depositAmount, activeDuration, gracePeriodStartTimestamp, gracePeriodDuration, rateLimit, index, holder, token] = membershipData;
270
267
  const gracePeriodEnd = gracePeriodStartTimestamp.add(gracePeriodDuration);
271
- console.log("gracePeriodEnd", gracePeriodEnd);
272
268
  let state;
273
269
  if (currentBlock < gracePeriodStartTimestamp.toNumber()) {
274
270
  state = MembershipState.Active;
@@ -279,12 +275,6 @@ class RLNBaseContract {
279
275
  else {
280
276
  state = MembershipState.Expired;
281
277
  }
282
- console.log("state", state);
283
- console.log("index", index);
284
- console.log("idCommitment", idCommitmentBigInt.toString());
285
- console.log("rateLimit", rateLimit);
286
- console.log("gracePeriodStartTimestamp", gracePeriodStartTimestamp);
287
- console.log("gracePeriodEnd", gracePeriodEnd);
288
278
  return {
289
279
  index,
290
280
  idCommitment: idCommitmentBigInt.toString(),
@@ -300,26 +290,30 @@ class RLNBaseContract {
300
290
  };
301
291
  }
302
292
  catch (error) {
303
- console.error("Error in getMembershipInfo:", error);
293
+ log.error("Error in getMembershipInfo:", error);
304
294
  return undefined;
305
295
  }
306
296
  }
307
- async extendMembership(idCommitment) {
308
- return this.contract.extendMemberships([idCommitment]);
297
+ async extendMembership(idCommitmentBigInt) {
298
+ const tx = await this.contract.extendMemberships([idCommitmentBigInt]);
299
+ await tx.wait();
300
+ return tx;
309
301
  }
310
- async eraseMembership(idCommitment, eraseFromMembershipSet = true) {
311
- return this.contract.eraseMemberships([idCommitment], eraseFromMembershipSet);
302
+ async eraseMembership(idCommitmentBigInt, eraseFromMembershipSet = true) {
303
+ const tx = await this.contract.eraseMemberships([idCommitmentBigInt], eraseFromMembershipSet);
304
+ await tx.wait();
305
+ return tx;
312
306
  }
313
- async registerMembership(idCommitment, rateLimit = DEFAULT_RATE_LIMIT) {
307
+ async registerMembership(idCommitmentBigInt, rateLimit = DEFAULT_RATE_LIMIT) {
314
308
  if (rateLimit < RATE_LIMIT_PARAMS.MIN_RATE ||
315
309
  rateLimit > RATE_LIMIT_PARAMS.MAX_RATE) {
316
310
  throw new Error(`Rate limit must be between ${RATE_LIMIT_PARAMS.MIN_RATE} and ${RATE_LIMIT_PARAMS.MAX_RATE}`);
317
311
  }
318
- return this.contract.register(idCommitment, rateLimit, []);
312
+ return this.contract.register(idCommitmentBigInt, rateLimit, []);
319
313
  }
320
- async withdraw(token) {
314
+ async withdraw(token, from) {
321
315
  try {
322
- const tx = await this.contract.withdraw(token);
316
+ const tx = await this.contract.withdraw(token, from);
323
317
  await tx.wait();
324
318
  }
325
319
  catch (error) {
@@ -330,7 +324,7 @@ class RLNBaseContract {
330
324
  try {
331
325
  log.info(`Registering identity with rate limit: ${this.rateLimit} messages/epoch`);
332
326
  // Check if the ID commitment is already registered
333
- const existingIndex = await this.getMemberIndex(identity.IDCommitmentBigInt.toString());
327
+ const existingIndex = await this.getMemberIndex(identity.IDCommitmentBigInt);
334
328
  if (existingIndex) {
335
329
  throw new Error(`ID commitment is already registered with index ${existingIndex}`);
336
330
  }
@@ -468,9 +462,9 @@ class RLNBaseContract {
468
462
  }
469
463
  return this._membersExpiredFilter;
470
464
  }
471
- async getMemberIndex(idCommitment) {
465
+ async getMemberIndex(idCommitmentBigInt) {
472
466
  try {
473
- const events = await this.contract.queryFilter(this.contract.filters.MembershipRegistered(idCommitment));
467
+ const events = await this.contract.queryFilter(this.contract.filters.MembershipRegistered(idCommitmentBigInt));
474
468
  if (events.length === 0)
475
469
  return undefined;
476
470
  // Get the most recent registration event
@@ -6,7 +6,7 @@ import { Logger } from '../../../utils/dist/logger/index.js';
6
6
  import { MerkleRootTracker } from '../root_tracker.js';
7
7
  import { zeroPadLE } from '../utils/bytes.js';
8
8
  import { RLNBaseContract } from './rln_base_contract.js';
9
- import { BigNumber } from '../../../../node_modules/@ethersproject/bignumber/lib.esm/bignumber.js';
9
+ import { BigNumber } from '@ethersproject/bignumber';
10
10
 
11
11
  const log = new Logger("waku:rln:contract");
12
12
  class RLNContract extends RLNBaseContract {
@@ -45,8 +45,14 @@ function writeUIntLE(buf, value, offset, byteLength, noAssert) {
45
45
  * @returns BigInt
46
46
  */
47
47
  function buildBigIntFromUint8Array(array, byteOffset = 0) {
48
- const dataView = new DataView(array.buffer);
49
- return dataView.getBigUint64(byteOffset, true);
48
+ // Convert byte array to BigInt in big-endian format (to match nwaku)
49
+ let result = 0n;
50
+ // Process all 32 bytes (or the available bytes if less)
51
+ const length = Math.min(array.length - byteOffset, 32);
52
+ for (let i = 0; i < length; i++) {
53
+ result = (result << 8n) | BigInt(array[byteOffset + i]);
54
+ }
55
+ return result;
50
56
  }
51
57
  /**
52
58
  * Fills with zeros to set length
@@ -1,4 +1,4 @@
1
- import { Web3Provider } from '../../../../node_modules/@ethersproject/providers/lib.esm/web3-provider.js';
1
+ import * as providers from '@ethersproject/providers';
2
2
 
3
3
  const extractMetaMaskSigner = async () => {
4
4
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -7,7 +7,7 @@ const extractMetaMaskSigner = async () => {
7
7
  throw Error("Missing or invalid Ethereum provider. Please install a Web3 wallet such as MetaMask.");
8
8
  }
9
9
  await ethereum.request({ method: "eth_requestAccounts" });
10
- const provider = new Web3Provider(ethereum, "any");
10
+ const provider = new providers.Web3Provider(ethereum, "any");
11
11
  return provider.getSigner();
12
12
  };
13
13
 
@@ -1,6 +1,6 @@
1
1
  import { __exports as random } from '../../../../../../../_virtual/random.js';
2
2
  import '../../../../@noble/hashes/utils.js';
3
- import { __exports as utils } from '../../../../../../../_virtual/utils2.js';
3
+ import { __exports as utils } from '../../../../../../../_virtual/utils.js';
4
4
 
5
5
  Object.defineProperty(random, "__esModule", { value: true });
6
6
  random.getRandomBytes = random.getRandomBytesSync = void 0;
@@ -1,10 +1,10 @@
1
1
  import { commonjsGlobal } from '../../../../../../../_virtual/_commonjsHelpers.js';
2
2
  import { commonjsRequire } from '../../../../../../../_virtual/_commonjs-dynamic-modules.js';
3
- import { __module as utils } from '../../../../../../../_virtual/utils.js';
3
+ import { __module as utils } from '../../../../../../../_virtual/utils2.js';
4
4
  import '../../../../@noble/hashes/_assert.js';
5
5
  import '../../../../@noble/hashes/utils.js';
6
6
  import { __exports as _assert } from '../../../../../../../_virtual/_assert.js';
7
- import { __exports as utils$1 } from '../../../../../../../_virtual/utils2.js';
7
+ import { __exports as utils$1 } from '../../../../../../../_virtual/utils.js';
8
8
 
9
9
  utils.exports;
10
10
 
@@ -1,7 +1,7 @@
1
1
  import { __exports as _sha2 } from '../../../../../_virtual/_sha2.js';
2
2
  import './_assert.js';
3
3
  import './utils.js';
4
- import { __exports as utils } from '../../../../../_virtual/utils2.js';
4
+ import { __exports as utils } from '../../../../../_virtual/utils.js';
5
5
  import { __exports as _assert } from '../../../../../_virtual/_assert.js';
6
6
 
7
7
  Object.defineProperty(_sha2, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  import { __exports as hmac } from '../../../../../_virtual/hmac.js';
2
2
  import './_assert.js';
3
3
  import './utils.js';
4
- import { __exports as utils } from '../../../../../_virtual/utils2.js';
4
+ import { __exports as utils } from '../../../../../_virtual/utils.js';
5
5
  import { __exports as _assert } from '../../../../../_virtual/_assert.js';
6
6
 
7
7
  (function (exports) {
@@ -2,7 +2,7 @@ import { __exports as pbkdf2$1 } from '../../../../../_virtual/pbkdf22.js';
2
2
  import './_assert.js';
3
3
  import './hmac.js';
4
4
  import './utils.js';
5
- import { __exports as utils } from '../../../../../_virtual/utils2.js';
5
+ import { __exports as utils } from '../../../../../_virtual/utils.js';
6
6
  import { __exports as _assert } from '../../../../../_virtual/_assert.js';
7
7
  import { __exports as hmac } from '../../../../../_virtual/hmac.js';
8
8
 
@@ -3,7 +3,7 @@ import './_assert.js';
3
3
  import './sha256.js';
4
4
  import './pbkdf2.js';
5
5
  import './utils.js';
6
- import { __exports as utils } from '../../../../../_virtual/utils2.js';
6
+ import { __exports as utils } from '../../../../../_virtual/utils.js';
7
7
  import { __exports as _assert } from '../../../../../_virtual/_assert.js';
8
8
  import { __exports as pbkdf2 } from '../../../../../_virtual/pbkdf22.js';
9
9
  import { __exports as sha256 } from '../../../../../_virtual/sha2562.js';
@@ -2,7 +2,7 @@ import { __exports as sha256 } from '../../../../../_virtual/sha2562.js';
2
2
  import './_sha2.js';
3
3
  import './utils.js';
4
4
  import { __exports as _sha2 } from '../../../../../_virtual/_sha2.js';
5
- import { __exports as utils } from '../../../../../_virtual/utils2.js';
5
+ import { __exports as utils } from '../../../../../_virtual/utils.js';
6
6
 
7
7
  Object.defineProperty(sha256, "__esModule", { value: true });
8
8
  sha256.sha224 = sha256.sha256 = void 0;
@@ -4,7 +4,7 @@ import './_u64.js';
4
4
  import './utils.js';
5
5
  import { __exports as _u64 } from '../../../../../_virtual/_u64.js';
6
6
  import { __exports as _sha2 } from '../../../../../_virtual/_sha2.js';
7
- import { __exports as utils } from '../../../../../_virtual/utils2.js';
7
+ import { __exports as utils } from '../../../../../_virtual/utils.js';
8
8
 
9
9
  Object.defineProperty(sha512, "__esModule", { value: true });
10
10
  sha512.sha384 = sha512.sha512_256 = sha512.sha512_224 = sha512.sha512 = sha512.SHA512 = void 0;
@@ -1,4 +1,4 @@
1
- import { __exports as utils } from '../../../../../_virtual/utils2.js';
1
+ import { __exports as utils } from '../../../../../_virtual/utils.js';
2
2
  import './cryptoBrowser.js';
3
3
  import { __exports as cryptoBrowser } from '../../../../../_virtual/cryptoBrowser.js';
4
4