@waku/rln 0.1.7 → 0.1.8-3545a8e.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.
- package/bundle/_virtual/__node-resolve_empty.js +2 -2
- package/bundle/_virtual/assert.js +3 -0
- package/bundle/_virtual/assert2.js +3 -0
- package/bundle/_virtual/browser2.js +3 -0
- package/bundle/_virtual/errors-browser.js +3 -0
- package/bundle/_virtual/errors.js +3 -0
- package/bundle/_virtual/events.js +3 -0
- package/bundle/_virtual/index3.js +3 -0
- package/bundle/_virtual/index4.js +3 -0
- package/bundle/_virtual/index5.js +3 -0
- package/bundle/_virtual/index6.js +3 -0
- package/bundle/_virtual/index7.js +3 -0
- package/bundle/_virtual/index8.js +3 -0
- package/bundle/_virtual/index9.js +3 -0
- package/bundle/_virtual/readable-browser.js +3 -0
- package/bundle/_virtual/string_decoder.js +3 -0
- package/bundle/_virtual/types2.js +3 -0
- package/bundle/_virtual/util.js +3 -0
- package/bundle/_virtual/utils.js +2 -2
- package/bundle/_virtual/utils2.js +2 -2
- package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/@noble/hashes/_sha2.js +1 -1
- package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/@noble/hashes/hmac.js +1 -1
- package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/@noble/hashes/pbkdf2.js +1 -1
- package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/@noble/hashes/scrypt.js +1 -1
- package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/@noble/hashes/sha256.js +1 -1
- package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/@noble/hashes/sha512.js +1 -1
- package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/@noble/hashes/utils.js +1 -1
- package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/random.js +1 -1
- package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/utils.js +2 -2
- package/bundle/node_modules/@noble/hashes/esm/sha3.js +1 -1
- package/bundle/node_modules/@noble/hashes/esm/utils.js +1 -8
- package/bundle/node_modules/assert/build/assert.js +569 -0
- package/bundle/node_modules/assert/build/internal/assert/assertion_error.js +455 -0
- package/bundle/node_modules/assert/build/internal/errors.js +174 -0
- package/bundle/node_modules/assert/build/internal/util/comparisons.js +585 -0
- package/bundle/node_modules/available-typed-arrays/index.js +20 -0
- package/bundle/node_modules/b4a/browser.js +589 -0
- package/bundle/node_modules/b4a/lib/ascii.js +33 -0
- package/bundle/node_modules/b4a/lib/base64.js +65 -0
- package/bundle/node_modules/b4a/lib/hex.js +53 -0
- package/bundle/node_modules/b4a/lib/utf16le.js +42 -0
- package/bundle/node_modules/b4a/lib/utf8.js +147 -0
- package/bundle/node_modules/base64-js/index.js +152 -0
- package/bundle/node_modules/blake-hash/lib/api/blake.js +3 -0
- package/bundle/node_modules/blake-hash/lib/blake.js +74 -0
- package/bundle/node_modules/blake-hash/lib/blake224.js +4 -0
- package/bundle/node_modules/blake-hash/lib/blake256.js +4 -0
- package/bundle/node_modules/blake-hash/lib/blake384.js +4 -0
- package/bundle/node_modules/blake-hash/lib/blake512.js +4 -0
- package/bundle/node_modules/blake2b/index.js +327 -0
- package/bundle/node_modules/blake2b-wasm/blake2b.js +44 -0
- package/bundle/node_modules/blake2b-wasm/index.js +143 -0
- package/bundle/node_modules/bn.js/lib/bn.js +2 -2
- package/bundle/node_modules/buffer/index.js +1823 -0
- package/bundle/node_modules/call-bind/callBound.js +18 -0
- package/bundle/node_modules/call-bind/index.js +35 -0
- package/bundle/node_modules/call-bind-apply-helpers/actualApply.js +15 -0
- package/bundle/node_modules/call-bind-apply-helpers/applyBind.js +14 -0
- package/bundle/node_modules/call-bind-apply-helpers/functionApply.js +13 -0
- package/bundle/node_modules/call-bind-apply-helpers/functionCall.js +13 -0
- package/bundle/node_modules/call-bind-apply-helpers/index.js +20 -0
- package/bundle/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/bundle/node_modules/call-bound/index.js +22 -0
- package/bundle/node_modules/circomlibjs/src/poseidon_constants.js +208 -0
- package/bundle/node_modules/circomlibjs/src/poseidon_constants_opt.js +24808 -0
- package/bundle/node_modules/circomlibjs/src/poseidon_gencontract.js +10 -0
- package/bundle/node_modules/circomlibjs/src/poseidon_wasm.js +433 -0
- package/bundle/node_modules/define-data-property/index.js +61 -0
- package/bundle/node_modules/define-properties/index.js +60 -0
- package/bundle/node_modules/dunder-proto/get.js +42 -0
- package/bundle/node_modules/es-define-property/index.js +14 -0
- package/bundle/node_modules/es-errors/eval.js +4 -0
- package/bundle/node_modules/es-errors/index.js +4 -0
- package/bundle/node_modules/es-errors/range.js +4 -0
- package/bundle/node_modules/es-errors/ref.js +4 -0
- package/bundle/node_modules/es-errors/syntax.js +4 -0
- package/bundle/node_modules/es-errors/type.js +4 -0
- package/bundle/node_modules/es-errors/uri.js +4 -0
- package/bundle/node_modules/es-object-atoms/index.js +4 -0
- package/bundle/node_modules/events/events.js +479 -0
- package/bundle/node_modules/ffjavascript/build/browser.esm.js +16533 -0
- package/bundle/node_modules/for-each/index.js +71 -0
- package/bundle/node_modules/function-bind/implementation.js +93 -0
- package/bundle/node_modules/function-bind/index.js +16 -0
- package/bundle/node_modules/get-intrinsic/index.js +404 -0
- package/bundle/node_modules/get-proto/Object.getPrototypeOf.js +17 -0
- package/bundle/node_modules/get-proto/Reflect.getPrototypeOf.js +13 -0
- package/bundle/node_modules/get-proto/index.js +40 -0
- package/bundle/node_modules/gopd/gOPD.js +4 -0
- package/bundle/node_modules/gopd/index.js +17 -0
- package/bundle/node_modules/has-property-descriptors/index.js +24 -0
- package/bundle/node_modules/has-symbols/index.js +25 -0
- package/bundle/node_modules/has-symbols/shams.js +45 -0
- package/bundle/node_modules/has-tostringtag/shams.js +10 -0
- package/bundle/node_modules/hasown/index.js +19 -0
- package/bundle/node_modules/ieee754/index.js +90 -0
- package/bundle/node_modules/is-arguments/index.js +47 -0
- package/bundle/node_modules/is-callable/index.js +101 -0
- package/bundle/node_modules/is-generator-function/index.js +52 -0
- package/bundle/node_modules/is-nan/implementation.js +16 -0
- package/bundle/node_modules/is-nan/index.js +35 -0
- package/bundle/node_modules/is-nan/polyfill.js +21 -0
- package/bundle/node_modules/is-nan/shim.js +28 -0
- package/bundle/node_modules/is-regex/index.js +74 -0
- package/bundle/node_modules/is-typed-array/index.js +10 -0
- package/bundle/node_modules/math-intrinsics/abs.js +4 -0
- package/bundle/node_modules/math-intrinsics/floor.js +4 -0
- package/bundle/node_modules/math-intrinsics/isNaN.js +6 -0
- package/bundle/node_modules/math-intrinsics/max.js +4 -0
- package/bundle/node_modules/math-intrinsics/min.js +4 -0
- package/bundle/node_modules/math-intrinsics/pow.js +4 -0
- package/bundle/node_modules/math-intrinsics/round.js +4 -0
- package/bundle/node_modules/math-intrinsics/sign.js +13 -0
- package/bundle/node_modules/nanoassert/index.js +20 -0
- package/bundle/node_modules/object-is/implementation.js +18 -0
- package/bundle/node_modules/object-is/index.js +33 -0
- package/bundle/node_modules/object-is/polyfill.js +9 -0
- package/bundle/node_modules/object-is/shim.js +26 -0
- package/bundle/node_modules/object-keys/implementation.js +133 -0
- package/bundle/node_modules/object-keys/index.js +35 -0
- package/bundle/node_modules/object-keys/isArguments.js +17 -0
- package/bundle/node_modules/object.assign/implementation.js +51 -0
- package/bundle/node_modules/object.assign/polyfill.js +57 -0
- package/bundle/node_modules/possible-typed-array-names/index.js +17 -0
- package/bundle/node_modules/readable-stream/errors-browser.js +129 -0
- package/bundle/node_modules/readable-stream/lib/_stream_duplex.js +113 -0
- package/bundle/node_modules/readable-stream/lib/_stream_passthrough.js +15 -0
- package/bundle/node_modules/readable-stream/lib/_stream_readable.js +1032 -0
- package/bundle/node_modules/readable-stream/lib/_stream_transform.js +132 -0
- package/bundle/node_modules/readable-stream/lib/_stream_writable.js +629 -0
- package/bundle/node_modules/readable-stream/lib/internal/streams/async_iterator.js +191 -0
- package/bundle/node_modules/readable-stream/lib/internal/streams/buffer_list.js +196 -0
- package/bundle/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/bundle/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/bundle/node_modules/readable-stream/lib/internal/streams/from-browser.js +13 -0
- package/bundle/node_modules/readable-stream/lib/internal/streams/pipeline.js +87 -0
- package/bundle/node_modules/readable-stream/lib/internal/streams/state.js +25 -0
- package/bundle/node_modules/readable-stream/lib/internal/streams/stream-browser.js +5 -0
- package/bundle/node_modules/readable-stream/readable-browser.js +24 -0
- package/bundle/node_modules/safe-buffer/index.js +81 -0
- package/bundle/node_modules/safe-regex-test/index.js +21 -0
- package/bundle/node_modules/set-function-length/index.js +48 -0
- package/bundle/node_modules/string_decoder/lib/string_decoder.js +285 -0
- package/bundle/node_modules/util/support/isBufferBrowser.js +8 -0
- package/bundle/node_modules/util/support/types.js +338 -0
- package/bundle/node_modules/util/util.js +721 -0
- package/bundle/node_modules/util-deprecate/browser.js +70 -0
- package/bundle/node_modules/which-typed-array/index.js +126 -0
- package/bundle/packages/core/dist/lib/connection_manager/connection_manager.js +0 -3
- package/bundle/packages/core/dist/lib/connection_manager/dialer.js +0 -3
- package/bundle/packages/core/dist/lib/connection_manager/discovery_dialer.js +0 -3
- package/bundle/packages/core/dist/lib/connection_manager/keep_alive_manager.js +0 -3
- package/bundle/packages/core/dist/lib/connection_manager/shard_reader.js +0 -3
- package/bundle/packages/core/dist/lib/message/version_0.js +32 -11
- package/bundle/packages/core/dist/lib/store/store.js +0 -3
- package/bundle/packages/rln/dist/codec.js +4 -5
- package/bundle/packages/rln/dist/contract/rln_base_contract.js +0 -3
- package/bundle/packages/rln/dist/contract/rln_contract.js +0 -3
- package/bundle/packages/rln/dist/credentials_manager.js +18 -16
- package/bundle/packages/rln/dist/keystore/keystore.js +0 -3
- package/bundle/packages/rln/dist/message.js +0 -3
- package/bundle/packages/rln/dist/rln.js +2 -5
- package/bundle/packages/rln/dist/utils/epoch.js +0 -3
- package/bundle/packages/rln/dist/utils/pure_poseidon.js +37 -0
- package/bundle/packages/utils/dist/bytes/index.js +1 -14
- package/dist/.tsbuildinfo +1 -1
- package/dist/codec.d.ts +2 -1
- package/dist/codec.js +4 -2
- package/dist/codec.js.map +1 -1
- package/dist/codec.test-utils.d.ts +1 -0
- package/dist/codec.test-utils.js +6 -1
- package/dist/codec.test-utils.js.map +1 -1
- package/dist/credentials_manager.js +18 -13
- package/dist/credentials_manager.js.map +1 -1
- package/dist/rln.d.ts +2 -2
- package/dist/rln.js +2 -2
- package/dist/rln.js.map +1 -1
- package/dist/utils/pure_poseidon.d.ts +7 -0
- package/dist/utils/pure_poseidon.js +26 -0
- package/dist/utils/pure_poseidon.js.map +1 -0
- package/package.json +1 -93
- package/src/codec.test-utils.ts +9 -1
- package/src/codec.ts +7 -3
- package/src/credentials_manager.ts +24 -18
- package/src/rln.ts +4 -2
- package/src/utils/pure_poseidon.ts +32 -0
- package/bundle/node_modules/@noble/hashes/esm/hmac.js +0 -88
- package/bundle/node_modules/@noble/hashes/esm/sha256.js +0 -16
- package/bundle/packages/interfaces/dist/constants.js +0 -6
- package/bundle/packages/utils/dist/common/sharding/index.js +0 -91
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _nodeResolve_empty from './_node-resolve_empty.js';
|
|
2
2
|
import { getAugmentedNamespace } from './_commonjsHelpers.js';
|
|
3
3
|
|
|
4
|
-
var require$$
|
|
4
|
+
var require$$3 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty);
|
|
5
5
|
|
|
6
|
-
export { require$$
|
|
6
|
+
export { require$$3 as default };
|
package/bundle/_virtual/utils.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var utils = {};
|
|
1
|
+
var utils = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export { utils as
|
|
3
|
+
export { utils as __module };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var utils = {
|
|
1
|
+
var utils = {};
|
|
2
2
|
|
|
3
|
-
export { utils as
|
|
3
|
+
export { utils as __exports };
|
|
@@ -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/
|
|
4
|
+
import { __exports as utils } from '../../../../../../_virtual/utils2.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/
|
|
4
|
+
import { __exports as utils } from '../../../../../../_virtual/utils2.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/
|
|
5
|
+
import { __exports as utils } from '../../../../../../_virtual/utils2.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/
|
|
6
|
+
import { __exports as utils } from '../../../../../../_virtual/utils2.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/
|
|
5
|
+
import { __exports as utils } from '../../../../../../_virtual/utils2.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/
|
|
7
|
+
import { __exports as utils } from '../../../../../../_virtual/utils2.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/
|
|
1
|
+
import { __exports as utils } from '../../../../../../_virtual/utils2.js';
|
|
2
2
|
import './cryptoBrowser.js';
|
|
3
3
|
import { __exports as cryptoBrowser } from '../../../../../../_virtual/cryptoBrowser.js';
|
|
4
4
|
|
package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/random.js
CHANGED
|
@@ -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/
|
|
3
|
+
import { __exports as utils } from '../../../../../_virtual/utils2.js';
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(random, "__esModule", { value: true });
|
|
6
6
|
random.getRandomBytes = random.getRandomBytesSync = void 0;
|
package/bundle/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/utils.js
CHANGED
|
@@ -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/
|
|
3
|
+
import { __module as utils } from '../../../../../_virtual/utils.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/
|
|
7
|
+
import { __exports as utils$1 } from '../../../../../_virtual/utils2.js';
|
|
8
8
|
|
|
9
9
|
utils.exports;
|
|
10
10
|
|
|
@@ -25,13 +25,6 @@ function abytes(b, ...lengths) {
|
|
|
25
25
|
if (lengths.length > 0 && !lengths.includes(b.length))
|
|
26
26
|
throw new Error('Uint8Array expected of length ' + lengths + ', got length=' + b.length);
|
|
27
27
|
}
|
|
28
|
-
/** Asserts something is hash */
|
|
29
|
-
function ahash(h) {
|
|
30
|
-
if (typeof h !== 'function' || typeof h.create !== 'function')
|
|
31
|
-
throw new Error('Hash should be wrapped by utils.createHasher');
|
|
32
|
-
anumber(h.outputLen);
|
|
33
|
-
anumber(h.blockLen);
|
|
34
|
-
}
|
|
35
28
|
/** Asserts a hash instance has not been destroyed / finished */
|
|
36
29
|
function aexists(instance, checkFinished = true) {
|
|
37
30
|
if (instance.destroyed)
|
|
@@ -192,4 +185,4 @@ function createHasher(hashCons) {
|
|
|
192
185
|
return hashC;
|
|
193
186
|
}
|
|
194
187
|
|
|
195
|
-
export { Hash, abytes, aexists,
|
|
188
|
+
export { Hash, abytes, aexists, anumber, aoutput, byteSwap, byteSwap32, bytesToHex, clean, concatBytes, createHasher, createView, hexToBytes, isBytes, isLE, rotr, swap32IfBE, toBytes, u32, utf8ToBytes };
|