@waku/rln 0.1.7 → 0.1.8-88fca77.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/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 +160 -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 +1830 -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 +485 -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 +97 -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 +1031 -0
- package/bundle/node_modules/readable-stream/lib/_stream_transform.js +132 -0
- package/bundle/node_modules/readable-stream/lib/_stream_writable.js +628 -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 +195 -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 +80 -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 +78 -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 +32 -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 +50 -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 +32 -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 +39 -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 +38 -20
- package/src/rln.ts +4 -2
- package/src/utils/pure_poseidon.ts +51 -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 };
|
|
@@ -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 };
|