@waku/rln 0.0.11 → 0.0.12-6875952

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.
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/byte_utils.ts","../node_modules/@types/ms/index.d.ts","../node_modules/@types/debug/index.d.ts","../node_modules/@multiformats/multiaddr/dist/src/protocols-table.d.ts","../node_modules/@multiformats/multiaddr/dist/src/index.d.ts","../node_modules/multiformats/types/src/bases/interface.d.ts","../node_modules/multiformats/types/src/hashes/interface.d.ts","../node_modules/multiformats/types/src/cid.d.ts","../node_modules/@libp2p/interface-peer-id/dist/src/index.d.ts","../node_modules/@libp2p/interface-connection/dist/src/status.d.ts","../node_modules/it-stream-types/dist/src/index.d.ts","../node_modules/@libp2p/interfaces/dist/src/index.d.ts","../node_modules/uint8arraylist/dist/src/index.d.ts","../node_modules/@libp2p/interface-connection/dist/src/index.d.ts","../node_modules/@libp2p/interfaces/dist/src/events.d.ts","../node_modules/@libp2p/interfaces/dist/src/startable.d.ts","../node_modules/@libp2p/interface-transport/node_modules/@multiformats/multiaddr/dist/src/protocols-table.d.ts","../node_modules/@libp2p/interface-transport/node_modules/@multiformats/multiaddr/dist/src/index.d.ts","../node_modules/@libp2p/interface-transport/dist/src/index.d.ts","../node_modules/@libp2p/interface-peer-info/node_modules/@multiformats/multiaddr/dist/src/index.d.ts","../node_modules/@libp2p/interface-peer-info/dist/src/index.d.ts","../node_modules/@libp2p/interface-content-routing/dist/src/index.d.ts","../node_modules/@libp2p/interface-address-manager/node_modules/@multiformats/multiaddr/dist/src/index.d.ts","../node_modules/@libp2p/interface-address-manager/dist/src/index.d.ts","../node_modules/@libp2p/interface-metrics/dist/src/index.d.ts","../node_modules/@libp2p/interface-peer-routing/dist/src/index.d.ts","../node_modules/@libp2p/interface-peer-store/node_modules/@multiformats/multiaddr/dist/src/index.d.ts","../node_modules/@libp2p/interface-record/dist/src/index.d.ts","../node_modules/@libp2p/interface-peer-store/dist/src/index.d.ts","../node_modules/@libp2p/interface-registrar/dist/src/index.d.ts","../node_modules/interface-store/dist/src/index.d.ts","../node_modules/multiformats/types/src/bases/base.d.ts","../node_modules/uint8arrays/types/src/util/bases.d.ts","../node_modules/uint8arrays/types/src/to-string.d.ts","../node_modules/interface-datastore/dist/src/key.d.ts","../node_modules/interface-datastore/dist/src/index.d.ts","../node_modules/it-pushable/dist/src/fifo.d.ts","../node_modules/it-pushable/dist/src/index.d.ts","../node_modules/@libp2p/interface-pubsub/dist/src/index.d.ts","../node_modules/@libp2p/interface-peer-discovery/dist/src/index.d.ts","../node_modules/@libp2p/interface-dht/dist/src/index.d.ts","../node_modules/@libp2p/interface-connection-manager/node_modules/@multiformats/multiaddr/dist/src/index.d.ts","../node_modules/@libp2p/interface-connection-manager/dist/src/index.d.ts","../node_modules/@libp2p/components/dist/src/index.d.ts","../node_modules/libp2p/dist/src/transport-manager.d.ts","../node_modules/protons-runtime/dist/src/codec.d.ts","../node_modules/protons-runtime/dist/src/decode.d.ts","../node_modules/protons-runtime/dist/src/encode.d.ts","../node_modules/protons-runtime/dist/src/codecs/enum.d.ts","../node_modules/protons-runtime/dist/src/codecs/message.d.ts","../node_modules/protons-runtime/dist/src/index.d.ts","../node_modules/libp2p/dist/src/identify/pb/message.d.ts","../node_modules/libp2p/dist/src/identify/index.d.ts","../node_modules/libp2p/dist/src/circuit/index.d.ts","../node_modules/@libp2p/interface-stream-muxer/dist/src/index.d.ts","../node_modules/@libp2p/interface-connection-encrypter/dist/src/index.d.ts","../node_modules/libp2p/dist/src/keychain/cms.d.ts","../node_modules/libp2p/dist/src/keychain/index.d.ts","../node_modules/libp2p/dist/src/connection-manager/latency-monitor.d.ts","../node_modules/timeout-abort-controller/dist/index.d.ts","../node_modules/libp2p/dist/src/connection-manager/dialer/dial-request.d.ts","../node_modules/libp2p/dist/src/connection-manager/dialer/index.d.ts","../node_modules/libp2p/dist/src/connection-manager/index.d.ts","../node_modules/libp2p/dist/src/ping/index.d.ts","../node_modules/libp2p/dist/src/fetch/index.d.ts","../node_modules/libp2p/dist/src/index.d.ts","../node_modules/js-waku/dist/proto/filter.d.ts","../node_modules/js-waku/dist/lib/waku_filter/filter_rpc.d.ts","../node_modules/js-waku/dist/lib/waku_filter/index.d.ts","../node_modules/js-waku/dist/proto/light_push.d.ts","../node_modules/js-waku/dist/lib/waku_light_push/index.d.ts","../node_modules/protobufjs/index.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/message/rpc.d.ts","../node_modules/@libp2p/interface-keys/dist/src/index.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/types.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/message-cache.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/peer-score-params.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/peer-score-thresholds.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/peer-stats.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/compute-score.d.ts","../node_modules/denque/index.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/message-deliveries.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/metrics.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/peer-score.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/index.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/tracer.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/config.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/stream.d.ts","../node_modules/@chainsafe/libp2p-gossipsub/dist/src/index.d.ts","../node_modules/js-waku/dist/lib/waku_relay/index.d.ts","../node_modules/js-waku/dist/lib/constants.d.ts","../node_modules/js-waku/dist/proto/store_v2beta3.d.ts","../node_modules/js-waku/dist/proto/store_v2beta4.d.ts","../node_modules/js-waku/dist/lib/waku_store/constants.d.ts","../node_modules/js-waku/dist/lib/waku_store/history_rpc.d.ts","../node_modules/js-waku/dist/lib/waku_store/index.d.ts","../node_modules/js-waku/dist/lib/waku.d.ts","../node_modules/js-waku/dist/lib/interfaces.d.ts","../node_modules/@noble/secp256k1/lib/index.d.ts","../node_modules/js-waku/dist/lib/crypto.d.ts","../node_modules/js-waku/dist/lib/enr/constants.d.ts","../node_modules/js-waku/dist/lib/enr/keypair/types.d.ts","../node_modules/js-waku/dist/lib/enr/keypair/secp256k1.d.ts","../node_modules/js-waku/dist/lib/enr/keypair/index.d.ts","../node_modules/js-waku/dist/lib/enr/types.d.ts","../node_modules/js-waku/dist/lib/enr/waku2_codec.d.ts","../node_modules/js-waku/dist/lib/enr/enr.d.ts","../node_modules/js-waku/dist/lib/enr/index.d.ts","../node_modules/js-waku/dist/lib/utils.d.ts","../node_modules/js-waku/dist/proto/message.d.ts","../node_modules/js-waku/dist/proto/topic_only_message.d.ts","../node_modules/js-waku/dist/index.d.ts","../src/epoch.ts","../node_modules/@waku/zerokit-rln-wasm/rln_wasm.d.ts","../src/resources/verification_key.js","../src/witness_calculator.d.ts","../src/rln.ts","../src/message.ts","../src/codec.ts","../src/index.ts","../src/witness_calculator.js","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"ea0a30e70b372a2ab9e9d1f6fa2b5850be0cadc47cb5fa8fa45a9df4b88831f7","signature":"49dc7187ccbcf7bc5b5f95b7d10765053bb2f4cf4f344ce48ce85b79db7cb596"},"6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41","27cd03a4713d26b0b52b5550a42090d9eef70114a4c3a83fcfe412e580adf0ba","a07051fa95231541a136adf29905db4b0f9f8c2616519673c55f90cc537c6808","930446bf32192f698b78f8ea4b309d8c2cfe02ab5ad78e4db907417405ebf5e7","5d3e07dbeabff37885262d9b4bd21c3185d95a09a268ab795f81135046a32bf4","7d309fbde13b5e30eff77c07a28b66451b0b50b83564d0cfa6a2a52c8b69aae6","7b542336a694a2f25b504dc444b52c77de252a775227bed2ca5e925fcef13d5a","6666d48a46dbfd565490e7f8789093e2392c5bdcc3a380dfdd91c77237e43101","02416ac1a9fe3c5ec70dfaed050f1a26aa65c50f655402dcb91223fbe51bccb4","26fe6126240601801a30c33b18616c4f798de6e866967f000a7f975a5392285c","dd49c9b32796fc4d04995ff4e69a4d23b7fd36605a9223e33a090b7bf8e25980","928eca07b95937e5491919c6f5fa79025301d65364837d7c3f9f07d61cfc2e03","331f961a57d2ac8fd1f4b36e240e0dbae91f97ce3f49f6d2a8be4a5d3b2897df","16c594cd8a44be9f5398d3fc7dbc9575f0b67d91a6553f35bd3576136862b32b","27cd03a4713d26b0b52b5550a42090d9eef70114a4c3a83fcfe412e580adf0ba","2ea9a5510eb2d9ea6c1ea8273718ecf89a24e1efb21c2ed156d6fdbadcf9ccb0","38cc9434f53457647573eede8d402b6819531582b5acd2d7bc209d3142316356","2ea9a5510eb2d9ea6c1ea8273718ecf89a24e1efb21c2ed156d6fdbadcf9ccb0","edb50eace77052203c3bc6eb251fe31f44ab0107e2b6d949ec983a918726aaf4","fe6af38652dbbc61cd25ab3f462896fadf71449ab0364db2f58c0940ca97591b","2ea9a5510eb2d9ea6c1ea8273718ecf89a24e1efb21c2ed156d6fdbadcf9ccb0","a50f0a71401b3c8247ab8ac54d5e44a6ac9c39d47a58fbbd5a0cee79a98d33f5","f7a9d2ebac14acf7ccab184c61bdabefa9c61e0fca2bd544dcd8999eb153c777","0d014fe6ff00590303942d67fcf6725188eaef7662627404296d934837e4cf03","2ea9a5510eb2d9ea6c1ea8273718ecf89a24e1efb21c2ed156d6fdbadcf9ccb0","866f0c4f16380a56653adc6cbeac08c58c626dabb431f0fa6cc2ba07874836d8","dd0caaa689028bc3d8d3230e24c1f98da0339c54a465c2195edd9ee23ea33434","539bef6bb223dc9ac66a89acf514ad9b16bd5039a633452b3191e559873dcb59","ca657fafdab00d4bd4c92b72bd68d1bde04f7f4476446ad47c7fc7ce9151577e","729b819a6779d842c3a6908ba4ed93d9fe50e2533d989f05f55a4811b3dd9910","c6591dc2b834e9be50f97edb393c4673e9b66f5689c90d69a71c7da962a0563a","7c515715da56f17e695e2c3611cf073d2cebfd417497652b35f9042b7235d5b2","531556008024c69163c0d120823a69e7a6a5be1279ea87fc725a63dc386278b7","df99b5b6041e9e37b46c876cd487020e4bc9e02a519fa4a735cbe18f5c4f2f38","274bc8a207e66c24bf59952d15da5d4b70ec412b3182739a82b7f1bd67a5bcc7","b5b6d20512b7d92b6de850a19ac29c548c7e5a105bcc1f22967e0efd5310fb2b","ccbeec89ab92cd041ebc17c5cb5dcca14a1fa0a636a818a10d5f20089b54e7f2","70cbb43b1e838bb77b16e1085115494c8b6925a954edf7fbdd494ad56a88adb8","986b7e3cf584813d300921ae7aa5b4073192e8c0f50344db1f9961975a30a77f","2ea9a5510eb2d9ea6c1ea8273718ecf89a24e1efb21c2ed156d6fdbadcf9ccb0","88ad228320e3076d53e30f26bd4358b9322cb68fd0d0ccd9895fceeba235e960","0334ade018e6a48ba2ac1bf782758df77cd2dcd3ae0270edc257fe2f7942f249","56290429d838ecda4c6ebf20352c68eaeb5783f0750393ffa5566d5d976dd4af","cb5cbcc8bc0e686fc503dd4db148679f6eb1bf6d593fd1f0add504b7d8de4c7d","667c9ac7c2f61c4a36220c2fa02f848a170aa96d3a58be32a5831aad86330da2","eb15dfd1f8b6da5f546fe29a6a0f0de4ae6dbd4a5577af4eba4c8a54548ef0a2","01443e5da049881a99f223c72617d4bb1d8854930d03deceb628e4be83df1e4a","76513b0c51c81a929f4f90694edf4dcc85f71bb46121b4192b5530e0601f9d81","b266fc05b22d884f2b3d3f4b55f000c33bca5f9b9f936a243110b88368710e2e","0820608ae5bf3995d77eedf0fa7f987c0d5c7c9592fdc0bcb391fb742d5067a0","a00910424a6d9ba16e3acfbd9fbc5f80ebc8e9bd57f8740dab34a2caee60207c","a4884d181eaed3e9d77cbabf01047fd99f03dc713b93c0ac0a956d2ac337daa1","d651c9e54a1387fbf0a60bc4d54472aa86e6248fe99c8b60030104db291eb5de","e9421d9417a6f97b6f1fab42d1f92b4cdc1f1bc7df1eca572d6c015ab5936afb","995a3938e28f1a7e359847f83b43951c05727b6ca42398982778adc8b9a58609","fdf29515c4323693532f4e4f3cd8833d778ad8aa20465146377cd90ae766602c","d8a63ecc9188f8ef5fce8c82ea2c691acce9a152b8bd07d75a6531c7d4c07df9","f83ca4c2157040bc3dc3edc59900f83cb4ca98c08357b8547401119cac667f57","b474a024807159ea4e8d0922a86da3cdd0580bc23f1d8415f5bfe782f3329dae","1a4d7457432a0774351c3582c2c7afdd045d6dd9fcae9b25bc8196a1f3caddc9","1ba6fafef4b1847388480a86f7014af9fd3cf604978b08e3be8acca4cd28a754","2ff50746755e37483881b3f33a676fd1bbb3b4e7dcd6332197507bd268df68a0","9febe93b8dd42425ec39a4d8e20b35c038e005c590b92524991858136833be6d","7cf03ed8cb512625bbfe7074cd09264037cbfd2db889c56ff4026693f5effba6","ef9c484bef2e1a893aafb481c538eae694875a121627d6f443e87caed4f9e820","88aa0657df43db4d4a7f0b78e9108e02bd63f753b8cd6256ee34c50b6be279ce","e96858dc11f9174115b2a5f4e3af58a39c79245b1991adad5179130dcb13fa4c","7872c02afbba864693cb3a2129b070de5ae92f9ee61aa455ce1d697b6bbaaf8c","a7701d84f61cdee582a14d23de190648f543fc92b3676ba17f4150c76c6b54fb","1558c642e03689d42843e7b047b9c20e77ee09ab388ff854484db5dcfbed11da","925a8770415572378b7b62dcd714e744b7ffed86de59bdbe1d25c68d9d1f7f51","0e4c4e3b7f9bddce2bfa2d4536da74ee8c9579ef0ef654e975d44ded342201a2","1c78addfbffb6d1ba38007875d7445b65cd076fc41d600a511cefe1263eebd01","a5fc37a5017ad0097ee70196f66018119db1e22b525a6afd4edc1ce6bbbd0b16","831f1ad45e156fa12bf736f4895329cb6e785f1c940fc58043718409d9845a43","32ffd3e74601a33cbf6a7596e00338eba67cf598faed2903be4281ba7ec076b5","f0e189b1e6f438e57ef5e091052193f69aa09103758940d926ef448802100e3c","bc78b25c3aaf139ca527952875c53bff67360e6b5812b82a8fa89fdefb720879","460f30d6ea494bbf076853e1588d30ec4651efcc26cbfcd2c91362f7efc87e89","b96a5c8de20ea0ec0bd266593fdafce71126c8d9f02cb292ed106dccc1bc45b5","2724c926dbbded3b51c9a7d3a141f8123cf9b0da102f91b2dda835bda27af606","579db9f817e749e6f4c373119fbf2a21f0e68ef9e2fff5f59a47ab779f364e6e","ce218e7127b5c109cc128316dcafb71146b483c3476cb6e30c4a84e38a4ea7e7","fbf1861ccb6cd611ab076684d2b95748c79aa8ea2b3193f4b19c93b056acbd35","60ca66c2e560e891c4bbac8a6664edeb14a2757c1269bc4a5be91859fe70b14e","e88e0b5cc0507cd875a465563d4cf2b15b587f0acfbb165ece0003355cb6ee29","a23ff524a4ef2fdd66e1f819e18aabca86d8dbafb3148fe5bdeff347cc7fd17f","59428ba0f5badd9a00cad75fac047cc369ad8fed467d9174fa1aa40309509ce0","6299d01ee802437d2fdb53f47a689062510a9f7a23c62fb74e375de1a7ae53af","9b0ce3d469d412754e0c32473c53940407a8abb6492f2b0aefa8d0d344a2d074","a6d46e32b64a5734441a2f2013c22860ca0638f65eb09e5aea33bb7eeb008eea","ca0a8b3f2b5a49904787170788b158c7dd043903f253f960d4556f155355c401","2db27d0f3a1ca4b7ed5d731bad4b93b82c52d96846030e0d8d83f95abb2ef699","44a90a28932df305585f63fad8e60e44c2b8432ae11a3e2cb41a915d0ecbb8d1","93b1bbfb5aff051840f7566b4cbc3d9471dfa1b842433b392df460483d3d015b","b290246b039d4cac5c614f4021c59b0670e38210d848243cded2c05f14af9dbd","32d21255d0e9e84cf7ec2b6619667f272dd2bf24ab65da803fd0550d978d207e","9c97b7b6137838f43665aa58080150368941b5be758d0d97be42ba5283e78112","02745a73c954228b9ee7fdb90451051e3f93a14f4a20ec3190113b37d101a021","7251b051302d5fb8c081d740a584df2b8a980a98b281382ae774b0f7d2348f5e","d0344d7d04ba77f5a158ffa9d8210b6fdd7e89e4d3fe5864cdf31df9a10eed10","1351122b0d74eb3b36904b3e61903e93d271424e5c276b84a3c291ece34f90bd","b0fe8eac1572e0b0a06fc85da636a0ddf475cc62e7eec90cb8e9b1973dba2a31","2440044d6f19586922ac3c16a348836eb4a93d111f65ace2929964b1f57e878f","64e84c0558ead00ce0c7b44c37b189a81f04c8abc987e3968331999b280cb043","fa83c09609a2eba873b864792931e6477855278d97bcc9fdd11bf4ff05ce80b9","f98f7fd5c208374f072a67a46306ab9b3f914554b4ebb673fb805e13a4119b6c","2dd78be12842d8dc0816822645bcaf68f09ae3e3983ea5c0ba83d6cc7632b47e","5821f60fa027b9d7633ddbc56ccdb4c5ef90c0b2b95e717b565b4fa054afaa2c","bafc4f9ad6e84627b20ff4ba5ad7c17ebc87525e543b96bcd27e7521214d54b4",{"version":"e9318530496429d8c5f5a39ce1f0eaf39ecf0a779a0e2f0f54ab37cd1ec057b6","signature":"b5b1f8f8b94f35a0a1b59e923899562482f6c99b912a0c2fa9424410fdd6f910"},"1b0b8954ff756a15ab3371c0f0ce598973bf4e24492790f4b9884c0c6dbe8e95",{"version":"9abb5669e34589039c2d856596fdbb05af84df6c57dd948582bb6cf33c7786a5","signature":"8e87acd8260ebbda136579bdf35e3535475864e40a3fd7ed09f45bd731fa6c3a"},"23c811b86e2e70be10ba78aba44942fb7dea4d7ca01cfbc14524508c5efbdc27",{"version":"c5ec25c0d03793b2fa85cd398e69d0270af51f54d21ebbd5f2ee45470284142f","signature":"365d75396c77399963a8fc4aaff68a4b0a536f97abc955c144092c30dfb759b9"},{"version":"df80fc4940de771d5fb7fa67e465c535414e6e59647a7c198b350b3b429fcef1","signature":"4a45088aea4f58824cf3d6c365cae0452b5aa7fc1dece8cd2f12d055b0a24a14"},{"version":"8802fb4f79319c716040e200722de0458c70ec0e9236f29e0fea0be95fe8cb97","signature":"f9a919e750f7a93061c6444e3b2219eeb64aa9a77550d591591412f8e2e4025d"},{"version":"9fb6b368ca0ac23248775dee5d151606c7f0c1850030ab2e257dd14970da0225","signature":"1010b5cf10f3c529969d61d8375c3efed47ca05702895b1a2913f1db2a291f05"},{"version":"cb732dfea79ca2a9a5fd4ed240df67d6c47fd5b66fe188c645367efd1762ed24","signature":"39257e47f71a52d198342c47d3a6b35338a3c8618e4335b56530f2cb3b0dc511"},"0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"e5979905796fe2740d85fbaf4f11f42b7ee1851421afe750823220813421b1af",{"version":"fcdcb42da18dd98dc286b1876dd425791772036012ae61263c011a76b13a190f","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","5b30f550565fd0a7524282c81c27fe8534099e2cd26170ca80852308f07ae68d","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","d97cd8a4a42f557fc62271369ed0461c8e50d47b7f9c8ad0b5462f53306f6060","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","063f53ff674228c190efa19dd9448bcbd540acdbb48a928f4cf3a1b9f9478e43","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"287b21dc1d1b9701c92e15e7dd673dfe6044b15812956377adffb6f08825b1bc","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"af9771b066ec35ffa1c7db391b018d2469d55e51b98ae95e62b6cbef1b0169ca","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8",{"version":"3f6d6465811321abc30a1e5f667feed63e5b3917b3d6c8d6645daf96c75f97ba","affectsGlobalScope":true}],"options":{"alwaysStrict":true,"declaration":true,"esModuleInterop":true,"module":6,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":7,"tsBuildInfoFile":"./.tsbuildinfo"},"fileIdsList":[[206],[50,56,80,85,114,116,117,124,126,127,128,129,206],[114,116,206],[113,206],[114,116,119,206],[118,120,206],[118,119,125,206],[122,206],[85,116,118,120,121,123,124,206],[116,206],[54,55,206],[116,124,206],[46,50,80,114,115,206],[50,55,57,60,63,65,66,67,70,71,77,80,82,84,206],[56,59,206],[58,206],[50,52,206],[50,53,55,56,59,206],[46,50,51,52,53,54,206],[49,53,62,206],[49,50,53,62,81,206],[56,62,206],[48,49,206],[50,59,206],[50,53,62,206],[50,56,59,62,69,206],[50,54,55,56,79,206],[50,54,206],[50,55,206],[52,53,55,206],[52,53,55,56,59,206],[45,206],[43,206],[163,206],[166,206],[167,172,206],[168,178,179,186,195,205,206],[168,169,178,186,206],[170,206],[171,172,179,187,206],[172,195,202,206],[173,175,178,186,206],[174,206],[175,176,206],[177,178,206],[178,206],[178,179,180,195,205,206],[178,179,180,195,206],[206,210],[181,186,195,205,206],[178,179,181,182,186,195,202,205,206],[181,183,195,202,205,206],[163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212],[178,184,206],[185,205,206],[175,178,186,195,206],[187,206],[188,206],[166,189,206],[190,204,206,210],[191,206],[192,206],[178,193,206],[193,194,206,208],[178,195,196,197,206],[195,197,206],[195,196,206],[198,206],[199,206],[178,200,201,206],[200,201,206],[172,186,195,202,206],[203,206],[186,204,206],[167,181,192,205,206],[172,206],[195,206,207],[206,208],[206,209],[167,172,178,180,189,195,205,206,208,210],[195,206,211],[72,76,206],[75,206],[78,206],[110,112,131,132,137,138,141,149,150,151,152,206],[140,206],[46,50,145,146,147,206],[142,145,146,147,148,206],[50,143,144,206],[143,206],[46,50,55,107,110,112,131,137,138,206],[46,50,55,107,110,112,131,137,139,206],[108,206],[50,70,107,109,139,206],[50,70,107,111,139,206],[116,130,139,206],[54,133,134,135,206],[50,70,107,132,136,139,206],[54,92,206],[57,70,85,107,206],[46,53,55,103,206],[46,50,53,55,57,66,70,85,101,102,206],[46,50,53,55,56,57,70,84,85,100,103,206],[56,206],[50,53,55,57,71,85,206],[46,53,55,57,71,85,93,206],[46,50,53,55,56,57,60,62,63,66,67,70,71,77,80,81,82,84,86,94,95,96,97,99,104,105,106,206],[99,206],[50,85,98,206],[50,53,57,71,85,206],[46,53,55,56,57,60,85,206],[47,206],[47,48,206],[92,206],[87,206],[87,92,206],[54,87,206],[87,88,89,90,91,206],[74,206],[47,73,206],[44,139,158,159,206],[44,206],[158,160,206],[139,153,154,158,206],[42,139,154,155,156,157,206],[139,158,159],[158,160],[139,158],[139,157]],"referencedMap":[[128,1],[130,2],[117,3],[114,4],[124,5],[121,6],[126,7],[123,8],[118,1],[119,1],[125,9],[120,10],[129,11],[127,12],[116,13],[85,14],[65,15],[64,16],[97,17],[84,18],[83,16],[55,19],[51,1],[63,20],[82,21],[115,1],[66,17],[81,22],[50,23],[62,24],[61,16],[67,25],[70,26],[68,16],[80,27],[69,28],[71,29],[96,30],[60,31],[59,16],[58,1],[56,1],[53,1],[57,1],[46,32],[45,1],[140,1],[44,33],[214,1],[43,1],[163,34],[164,34],[166,35],[167,36],[168,37],[169,38],[170,39],[171,40],[172,41],[173,42],[174,43],[175,44],[176,44],[177,45],[178,46],[179,47],[180,48],[165,49],[212,1],[181,50],[182,51],[183,52],[213,53],[184,54],[185,55],[186,56],[187,57],[188,58],[189,59],[190,60],[191,61],[192,62],[193,63],[194,64],[195,65],[197,66],[196,67],[198,68],[199,69],[200,70],[201,71],[202,72],[203,73],[204,74],[205,75],[206,76],[207,77],[208,78],[209,79],[210,80],[211,81],[155,1],[122,1],[77,82],[76,83],[72,1],[78,1],[79,84],[52,1],[153,85],[132,1],[141,86],[142,1],[148,87],[149,88],[145,89],[144,90],[143,1],[146,1],[147,1],[139,91],[150,1],[138,92],[109,93],[110,94],[112,95],[131,96],[135,1],[136,97],[137,98],[108,99],[111,99],[151,99],[133,99],[134,99],[152,99],[95,100],[102,101],[103,102],[104,103],[100,104],[106,105],[94,106],[93,99],[107,107],[98,108],[99,109],[105,110],[86,111],[73,112],[47,1],[49,113],[48,1],[113,1],[87,114],[90,115],[91,116],[88,117],[89,115],[92,118],[101,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[54,1],[75,119],[74,120],[42,1],[160,121],[154,122],[161,123],[159,124],[156,1],[158,125],[157,1],[162,1]],"exportedModulesMap":[[128,1],[130,2],[117,3],[114,4],[124,5],[121,6],[126,7],[123,8],[118,1],[119,1],[125,9],[120,10],[129,11],[127,12],[116,13],[85,14],[65,15],[64,16],[97,17],[84,18],[83,16],[55,19],[51,1],[63,20],[82,21],[115,1],[66,17],[81,22],[50,23],[62,24],[61,16],[67,25],[70,26],[68,16],[80,27],[69,28],[71,29],[96,30],[60,31],[59,16],[58,1],[56,1],[53,1],[57,1],[46,32],[45,1],[140,1],[44,33],[214,1],[43,1],[163,34],[164,34],[166,35],[167,36],[168,37],[169,38],[170,39],[171,40],[172,41],[173,42],[174,43],[175,44],[176,44],[177,45],[178,46],[179,47],[180,48],[165,49],[212,1],[181,50],[182,51],[183,52],[213,53],[184,54],[185,55],[186,56],[187,57],[188,58],[189,59],[190,60],[191,61],[192,62],[193,63],[194,64],[195,65],[197,66],[196,67],[198,68],[199,69],[200,70],[201,71],[202,72],[203,73],[204,74],[205,75],[206,76],[207,77],[208,78],[209,79],[210,80],[211,81],[155,1],[122,1],[77,82],[76,83],[72,1],[78,1],[79,84],[52,1],[153,85],[132,1],[141,86],[142,1],[148,87],[149,88],[145,89],[144,90],[143,1],[146,1],[147,1],[139,91],[150,1],[138,92],[109,93],[110,94],[112,95],[131,96],[135,1],[136,97],[137,98],[108,99],[111,99],[151,99],[133,99],[134,99],[152,99],[95,100],[102,101],[103,102],[104,103],[100,104],[106,105],[94,106],[93,99],[107,107],[98,108],[99,109],[105,110],[86,111],[73,112],[47,1],[49,113],[48,1],[113,1],[87,114],[90,115],[91,116],[88,117],[89,115],[92,118],[101,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[54,1],[75,119],[74,120],[160,126],[161,127],[159,128],[158,129],[157,1]],"semanticDiagnosticsPerFile":[128,130,117,114,124,121,126,123,118,119,125,120,129,127,116,85,65,64,97,84,83,55,51,63,82,115,66,81,50,62,61,67,70,68,80,69,71,96,60,59,58,56,53,57,46,45,140,44,214,43,163,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,165,212,181,182,183,213,184,185,186,187,188,189,190,191,192,193,194,195,197,196,198,199,200,201,202,203,204,205,206,207,208,209,210,211,155,122,77,76,72,78,79,52,153,132,141,142,148,149,145,144,143,146,147,139,150,138,109,110,112,131,135,136,137,108,111,151,133,134,152,95,102,103,104,100,106,94,93,107,98,99,105,86,73,47,49,48,113,87,90,91,88,89,92,101,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,34,39,40,35,36,37,38,1,41,54,75,74,42,160,154,161,159,156,158,157,162]},"version":"4.8.2"}
@@ -0,0 +1 @@
1
+ export declare function writeUIntLE(buf: Uint8Array, value: number, offset: number, byteLength: number, noAssert?: boolean): Uint8Array;
@@ -0,0 +1,24 @@
1
+ // Adapted from https://github.com/feross/buffer
2
+ function checkInt(buf, value, offset, ext, max, min) {
3
+ if (value > max || value < min)
4
+ throw new RangeError('"value" argument is out of bounds');
5
+ if (offset + ext > buf.length)
6
+ throw new RangeError("Index out of range");
7
+ }
8
+ export function writeUIntLE(buf, value, offset, byteLength, noAssert) {
9
+ value = +value;
10
+ offset = offset >>> 0;
11
+ byteLength = byteLength >>> 0;
12
+ if (!noAssert) {
13
+ const maxBytes = Math.pow(2, 8 * byteLength) - 1;
14
+ checkInt(buf, value, offset, byteLength, maxBytes, 0);
15
+ }
16
+ let mul = 1;
17
+ let i = 0;
18
+ buf[offset] = value & 0xff;
19
+ while (++i < byteLength && (mul *= 0x100)) {
20
+ buf[offset + i] = (value / mul) & 0xff;
21
+ }
22
+ return buf;
23
+ }
24
+ //# sourceMappingURL=byte_utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"byte_utils.js","sourceRoot":"","sources":["../src/byte_utils.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,SAAS,QAAQ,CACf,GAAe,EACf,KAAa,EACb,MAAc,EACd,GAAW,EACX,GAAW,EACX,GAAW;IAEX,IAAI,KAAK,GAAG,GAAG,IAAI,KAAK,GAAG,GAAG;QAC5B,MAAM,IAAI,UAAU,CAAC,mCAAmC,CAAC,CAAC;IAC5D,IAAI,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,MAAM;QAAE,MAAM,IAAI,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,WAAW,CACzB,GAAe,EACf,KAAa,EACb,MAAc,EACd,UAAkB,EAClB,QAAkB;IAElB,KAAK,GAAG,CAAC,KAAK,CAAC;IACf,MAAM,GAAG,MAAM,KAAK,CAAC,CAAC;IACtB,UAAU,GAAG,UAAU,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;QACjD,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;KACvD;IAED,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,GAAG,CAAC,MAAM,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,CAAC,GAAG,UAAU,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE;QACzC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC;KACxC;IAED,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { Decoder, Encoder, Message, ProtoMessage } from "js-waku/lib/interfaces";
2
+ import { RlnMessage } from "./message.js";
3
+ import { MembershipKey, RLNInstance } from "./rln.js";
4
+ export declare class RLNEncoder implements Encoder {
5
+ private encoder;
6
+ private rlnInstance;
7
+ private index;
8
+ contentTopic: string;
9
+ private readonly idKey;
10
+ constructor(encoder: Encoder, rlnInstance: RLNInstance, index: number, membershipKey: MembershipKey);
11
+ toWire(message: Partial<Message>): Promise<Uint8Array | undefined>;
12
+ toProtoObj(message: Partial<Message>): Promise<ProtoMessage | undefined>;
13
+ private generateProof;
14
+ }
15
+ export declare class RLNDecoder<T extends Message> implements Decoder<RlnMessage<T>> {
16
+ private rlnInstance;
17
+ private decoder;
18
+ constructor(rlnInstance: RLNInstance, decoder: Decoder<T>);
19
+ get contentTopic(): string;
20
+ fromWireToProtoObj(bytes: Uint8Array): Promise<ProtoMessage | undefined>;
21
+ fromProtoObj(proto: ProtoMessage): Promise<RlnMessage<T> | undefined>;
22
+ }
package/dist/codec.js ADDED
@@ -0,0 +1,57 @@
1
+ import debug from "debug";
2
+ import { RlnMessage, toRLNSignal } from "./message.js";
3
+ const log = debug("waku:rln:encoder");
4
+ export class RLNEncoder {
5
+ constructor(encoder, rlnInstance, index, membershipKey) {
6
+ this.encoder = encoder;
7
+ this.rlnInstance = rlnInstance;
8
+ this.index = index;
9
+ if (index < 0)
10
+ throw "invalid membership index";
11
+ this.idKey = membershipKey.IDKey;
12
+ this.contentTopic = encoder.contentTopic;
13
+ }
14
+ async toWire(message) {
15
+ message.contentTopic = this.contentTopic;
16
+ message.rateLimitProof = await this.generateProof(message);
17
+ log("Proof generated", message.rateLimitProof);
18
+ return this.encoder.toWire(message);
19
+ }
20
+ async toProtoObj(message) {
21
+ message.contentTopic = this.contentTopic;
22
+ const protoMessage = await this.encoder.toProtoObj(message);
23
+ if (!protoMessage)
24
+ return;
25
+ protoMessage.rateLimitProof = await this.generateProof(message);
26
+ log("Proof generated", protoMessage.rateLimitProof);
27
+ return protoMessage;
28
+ }
29
+ async generateProof(message) {
30
+ const signal = toRLNSignal(message);
31
+ console.time("proof_gen_timer");
32
+ const proof = await this.rlnInstance.generateRLNProof(signal, this.index, message.timestamp, this.idKey);
33
+ console.timeEnd("proof_gen_timer");
34
+ return proof;
35
+ }
36
+ }
37
+ export class RLNDecoder {
38
+ constructor(rlnInstance, decoder) {
39
+ this.rlnInstance = rlnInstance;
40
+ this.decoder = decoder;
41
+ }
42
+ get contentTopic() {
43
+ return this.decoder.contentTopic;
44
+ }
45
+ fromWireToProtoObj(bytes) {
46
+ const protoMessage = this.decoder.fromWireToProtoObj(bytes);
47
+ log("Message decoded", protoMessage);
48
+ return Promise.resolve(protoMessage);
49
+ }
50
+ async fromProtoObj(proto) {
51
+ const msg = await this.decoder.fromProtoObj(proto);
52
+ if (!msg)
53
+ return;
54
+ return new RlnMessage(this.rlnInstance, msg, proto.rateLimitProof);
55
+ }
56
+ }
57
+ //# sourceMappingURL=codec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec.js","sourceRoot":"","sources":["../src/codec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGvD,MAAM,GAAG,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAEtC,MAAM,OAAO,UAAU;IAIrB,YACU,OAAgB,EAChB,WAAwB,EACxB,KAAa,EACrB,aAA4B;QAHpB,YAAO,GAAP,OAAO,CAAS;QAChB,gBAAW,GAAX,WAAW,CAAa;QACxB,UAAK,GAAL,KAAK,CAAQ;QAGrB,IAAI,KAAK,GAAG,CAAC;YAAE,MAAM,0BAA0B,CAAC;QAChD,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAyB;QACpC,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACzC,OAAO,CAAC,cAAc,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC3D,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAyB;QAEzB,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACzC,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAC5D,IAAI,CAAC,YAAY;YAAE,OAAO;QAE1B,YAAY,CAAC,cAAc,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAChE,GAAG,CAAC,iBAAiB,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC;IACtB,CAAC;IAEO,KAAK,CAAC,aAAa,CACzB,OAAyB;QAEzB,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;QAEpC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAChC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,CACnD,MAAM,EACN,IAAI,CAAC,KAAK,EACV,OAAO,CAAC,SAAS,EACjB,IAAI,CAAC,KAAK,CACX,CAAC;QACF,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QACnC,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAED,MAAM,OAAO,UAAU;IACrB,YAAoB,WAAwB,EAAU,OAAmB;QAArD,gBAAW,GAAX,WAAW,CAAa;QAAU,YAAO,GAAP,OAAO,CAAY;IAAG,CAAC;IAE7E,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;IACnC,CAAC;IAED,kBAAkB,CAAC,KAAiB;QAClC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC5D,GAAG,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;QACrC,OAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAmB;QACpC,MAAM,GAAG,GAAkB,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAClE,IAAI,CAAC,GAAG;YAAE,OAAO;QACjB,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACrE,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export declare function dateToEpoch(timestamp: Date, epochUnitSeconds?: number): number;
2
+ export declare function epochIntToBytes(epoch: number): Uint8Array;
3
+ export declare function epochBytesToInt(bytes: Uint8Array): number;
package/dist/epoch.js ADDED
@@ -0,0 +1,23 @@
1
+ import debug from "debug";
2
+ const DefaultEpochUnitSeconds = 10; // the rln-relay epoch length in seconds
3
+ const log = debug("waku:rln:epoch");
4
+ export function dateToEpoch(timestamp, epochUnitSeconds = DefaultEpochUnitSeconds) {
5
+ const time = timestamp.getTime();
6
+ const epoch = Math.floor(time / 1000 / epochUnitSeconds);
7
+ log("generated epoch", epoch);
8
+ return epoch;
9
+ }
10
+ export function epochIntToBytes(epoch) {
11
+ const bytes = new Uint8Array(32);
12
+ const db = new DataView(bytes.buffer);
13
+ db.setUint32(0, epoch, true);
14
+ log("encoded epoch", epoch, bytes);
15
+ return bytes;
16
+ }
17
+ export function epochBytesToInt(bytes) {
18
+ const dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
19
+ const epoch = dv.getUint32(0, true);
20
+ log("decoded epoch", epoch, bytes);
21
+ return epoch;
22
+ }
23
+ //# sourceMappingURL=epoch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"epoch.js","sourceRoot":"","sources":["../src/epoch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,uBAAuB,GAAG,EAAE,CAAC,CAAC,wCAAwC;AAE5E,MAAM,GAAG,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAEpC,MAAM,UAAU,WAAW,CACzB,SAAe,EACf,mBAA2B,uBAAuB;IAElD,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;IACjC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,GAAG,gBAAgB,CAAC,CAAC;IACzD,GAAG,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;IAC9B,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAa;IAC3C,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IACjC,MAAM,EAAE,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC7B,GAAG,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACnC,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAiB;IAC/C,MAAM,EAAE,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1E,MAAM,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACpC,GAAG,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACnC,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { RLNDecoder, RLNEncoder } from "./codec.js";
2
+ import type { Proof, RLNInstance } from "./rln.js";
3
+ import { MembershipKey } from "./rln.js";
4
+ export declare function create(): Promise<RLNInstance>;
5
+ export { RLNInstance, MembershipKey, Proof, RLNEncoder, RLNDecoder };
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ import { RLNDecoder, RLNEncoder } from "./codec.js";
2
+ import { MembershipKey } from "./rln.js";
3
+ // reexport the create function, dynamically imported from rln.ts
4
+ export async function create() {
5
+ // A dependency graph that contains any wasm must all be imported
6
+ // asynchronously. This file does the single async import, so
7
+ // that no one else needs to worry about it again.
8
+ const rlnModule = await import("./rln.js");
9
+ return await rlnModule.create();
10
+ }
11
+ export { MembershipKey, RLNEncoder, RLNDecoder };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,iEAAiE;AACjE,MAAM,CAAC,KAAK,UAAU,MAAM;IAC1B,iEAAiE;IACjE,6DAA6D;IAC7D,kDAAkD;IAClD,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;IAC3C,OAAO,MAAM,SAAS,CAAC,MAAM,EAAE,CAAC;AAClC,CAAC;AAED,OAAO,EAAe,aAAa,EAAS,UAAU,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { Message, RateLimitProof } from "js-waku/lib/interfaces";
2
+ import { RLNInstance } from "./rln.js";
3
+ export declare function toRLNSignal(msg: Partial<Message>): Uint8Array;
4
+ export declare class RlnMessage<T extends Message> implements Message {
5
+ rlnInstance: RLNInstance;
6
+ msg: T;
7
+ rateLimitProof: RateLimitProof | undefined;
8
+ constructor(rlnInstance: RLNInstance, msg: T, rateLimitProof: RateLimitProof | undefined);
9
+ verify(): boolean | undefined;
10
+ verifyNoRoot(): boolean | undefined;
11
+ get payload(): Uint8Array | undefined;
12
+ get contentTopic(): string | undefined;
13
+ get timestamp(): Date | undefined;
14
+ get epoch(): number | undefined;
15
+ }
@@ -0,0 +1,39 @@
1
+ import { utils } from "js-waku";
2
+ import { epochBytesToInt } from "./epoch.js";
3
+ export function toRLNSignal(msg) {
4
+ const contentTopicBytes = utils.utf8ToBytes(msg.contentTopic ?? "");
5
+ return new Uint8Array([...(msg.payload ?? []), ...contentTopicBytes]);
6
+ }
7
+ export class RlnMessage {
8
+ constructor(rlnInstance, msg, rateLimitProof) {
9
+ this.rlnInstance = rlnInstance;
10
+ this.msg = msg;
11
+ this.rateLimitProof = rateLimitProof;
12
+ }
13
+ verify() {
14
+ return this.rateLimitProof
15
+ ? this.rlnInstance.verifyWithRoots(this.rateLimitProof, toRLNSignal(this)) // this.rlnInstance.verifyRLNProof once issue status-im/nwaku#1248 is fixed
16
+ : undefined;
17
+ }
18
+ verifyNoRoot() {
19
+ return this.rateLimitProof
20
+ ? this.rlnInstance.verifyWithNoRoot(this.rateLimitProof, toRLNSignal(this)) // this.rlnInstance.verifyRLNProof once issue status-im/nwaku#1248 is fixed
21
+ : undefined;
22
+ }
23
+ get payload() {
24
+ return this.msg.payload;
25
+ }
26
+ get contentTopic() {
27
+ return this.msg.contentTopic;
28
+ }
29
+ get timestamp() {
30
+ return this.msg.timestamp;
31
+ }
32
+ get epoch() {
33
+ const bytes = this.msg.rateLimitProof?.epoch;
34
+ if (!bytes)
35
+ return;
36
+ return epochBytesToInt(bytes);
37
+ }
38
+ }
39
+ //# sourceMappingURL=message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.js","sourceRoot":"","sources":["../src/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,MAAM,UAAU,WAAW,CAAC,GAAqB;IAC/C,MAAM,iBAAiB,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;IACpE,OAAO,IAAI,UAAU,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,OAAO,UAAU;IACrB,YACS,WAAwB,EACxB,GAAM,EACN,cAA0C;QAF1C,gBAAW,GAAX,WAAW,CAAa;QACxB,QAAG,GAAH,GAAG,CAAG;QACN,mBAAc,GAAd,cAAc,CAA4B;IAChD,CAAC;IAEG,MAAM;QACX,OAAO,IAAI,CAAC,cAAc;YACxB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,2EAA2E;YACtJ,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,cAAc;YACxB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAC/B,IAAI,CAAC,cAAc,EACnB,WAAW,CAAC,IAAI,CAAC,CAClB,CAAC,2EAA2E;YAC/E,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;IAC1B,CAAC;IAED,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC;IAC/B,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC;IAC5B,CAAC;IAED,IAAI,KAAK;QACP,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC;QAC7C,IAAI,CAAC,KAAK;YAAE,OAAO;QAEnB,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACF"}
Binary file
Binary file
@@ -0,0 +1,12 @@
1
+ export default verificationKey;
2
+ declare namespace verificationKey {
3
+ const protocol: string;
4
+ const curve: string;
5
+ const nPublic: number;
6
+ const vk_alpha_1: string[];
7
+ const vk_beta_2: string[][];
8
+ const vk_gamma_2: string[][];
9
+ const vk_delta_2: string[][];
10
+ const vk_alphabeta_12: string[][][];
11
+ const IC: string[][];
12
+ }
@@ -0,0 +1,121 @@
1
+ const verificationKey = {
2
+ "protocol": "groth16",
3
+ "curve": "bn128",
4
+ "nPublic": 6,
5
+ "vk_alpha_1": [
6
+ "1805378556360488226980822394597799963030511477964155500103132920745199284516",
7
+ "11990395240534218699464972016456017378439762088320057798320175886595281336136",
8
+ "1"
9
+ ],
10
+ "vk_beta_2": [
11
+ [
12
+ "11031529986141021025408838211017932346992429731488270384177563837022796743627",
13
+ "16042159910707312759082561183373181639420894978640710177581040523252926273854"
14
+ ],
15
+ [
16
+ "20112698439519222240302944148895052359035104222313380895334495118294612255131",
17
+ "19441583024670359810872018179190533814486480928824742448673677460151702019379"
18
+ ],
19
+ [
20
+ "1",
21
+ "0"
22
+ ]
23
+ ],
24
+ "vk_gamma_2": [
25
+ [
26
+ "10857046999023057135944570762232829481370756359578518086990519993285655852781",
27
+ "11559732032986387107991004021392285783925812861821192530917403151452391805634"
28
+ ],
29
+ [
30
+ "8495653923123431417604973247489272438418190587263600148770280649306958101930",
31
+ "4082367875863433681332203403145435568316851327593401208105741076214120093531"
32
+ ],
33
+ [
34
+ "1",
35
+ "0"
36
+ ]
37
+ ],
38
+ "vk_delta_2": [
39
+ [
40
+ "1948496782571164085469528023647105317580208688174386157591917599801657832035",
41
+ "20445814069256658101339037520922621162739470138213615104905368409238414511981"
42
+ ],
43
+ [
44
+ "10024680869920840984813249386422727863826862577760330492647062850849851925340",
45
+ "10512156247842686783409460795717734694774542185222602679117887145206209285142"
46
+ ],
47
+ [
48
+ "1",
49
+ "0"
50
+ ]
51
+ ],
52
+ "vk_alphabeta_12": [
53
+ [
54
+ [
55
+ "5151991366823434428398919091000210787450832786814248297320989361921939794156",
56
+ "15735191313289001022885148627913534790382722933676436876510746491415970766821"
57
+ ],
58
+ [
59
+ "3387907257437913904447588318761906430938415556102110876587455322225272831272",
60
+ "1998779853452712881084781956683721603875246565720647583735935725110674288056"
61
+ ],
62
+ [
63
+ "14280074182991498185075387990446437410077692353432005297922275464876153151820",
64
+ "17092408446352310039633488224969232803092763095456307462247653153107223117633"
65
+ ]
66
+ ],
67
+ [
68
+ [
69
+ "4359046709531668109201634396816565829237358165496082832279660960675584351266",
70
+ "4511888308846208349307186938266411423935335853916317436093178288331845821336"
71
+ ],
72
+ [
73
+ "11429499807090785857812316277335883295048773373068683863667725283965356423273",
74
+ "16232274853200678548795010078253506586114563833318973594428907292096178657392"
75
+ ],
76
+ [
77
+ "18068999605870933925311275504102553573815570223888590384919752303726860800970",
78
+ "17309569111965782732372130116757295842160193489132771344011460471298173784984"
79
+ ]
80
+ ]
81
+ ],
82
+ "IC": [
83
+ [
84
+ "18693301901828818437917730940595978397160482710354161265484535387752523310572",
85
+ "17985273354976640088538673802000794244421192643855111089693820179790551470769",
86
+ "1"
87
+ ],
88
+ [
89
+ "21164641723988537620541455173278629777250883365474191521194244273980931825942",
90
+ "998385854410718613441067082771678946155853656328717326195057262123686425518",
91
+ "1"
92
+ ],
93
+ [
94
+ "21666968581672145768705229094968410656430989593283335488162701230986314747515",
95
+ "17996457608540683483506630273632100555125353447506062045735279661096094677264",
96
+ "1"
97
+ ],
98
+ [
99
+ "20137761979695192602424300886442379728165712610493092740175904438282083668117",
100
+ "19184814924890679891263780109959113289320127263583260218200636509492157834679",
101
+ "1"
102
+ ],
103
+ [
104
+ "10943171273393803842589314082509655332154393332394322726077270895078286354146",
105
+ "10872472035685319847811233167729172672344935625121511932198535224727331126439",
106
+ "1"
107
+ ],
108
+ [
109
+ "13049169779481227658517545034348883391527506091990880778783387628208561946597",
110
+ "10083689369261379027228809473568899816311684698866922944902456565434209079955",
111
+ "1"
112
+ ],
113
+ [
114
+ "19633516378466409167014413361365552102431118630694133723053441455184566611083",
115
+ "8059525100726933978719058611146131904598011633549012007359165766216730722269",
116
+ "1"
117
+ ]
118
+ ]
119
+ };
120
+ export default verificationKey;
121
+ //# sourceMappingURL=verification_key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification_key.js","sourceRoot":"","sources":["../../src/resources/verification_key.js"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG;IACtB,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,OAAO;IAChB,SAAS,EAAE,CAAC;IACZ,YAAY,EAAE;QACZ,8EAA8E;QAC9E,+EAA+E;QAC/E,GAAG;KACJ;IACD,WAAW,EAAE;QACX;YACE,+EAA+E;YAC/E,+EAA+E;SAChF;QACD;YACE,+EAA+E;YAC/E,+EAA+E;SAChF;QACD;YACE,GAAG;YACH,GAAG;SACJ;KACF;IACD,YAAY,EAAE;QACZ;YACE,+EAA+E;YAC/E,+EAA+E;SAChF;QACD;YACE,8EAA8E;YAC9E,8EAA8E;SAC/E;QACD;YACE,GAAG;YACH,GAAG;SACJ;KACF;IACD,YAAY,EAAE;QACZ;YACE,8EAA8E;YAC9E,+EAA+E;SAChF;QACD;YACE,+EAA+E;YAC/E,+EAA+E;SAChF;QACD;YACE,GAAG;YACH,GAAG;SACJ;KACF;IACD,iBAAiB,EAAE;QACjB;YACE;gBACE,8EAA8E;gBAC9E,+EAA+E;aAChF;YACD;gBACE,8EAA8E;gBAC9E,8EAA8E;aAC/E;YACD;gBACE,+EAA+E;gBAC/E,+EAA+E;aAChF;SACF;QACD;YACE;gBACE,8EAA8E;gBAC9E,8EAA8E;aAC/E;YACD;gBACE,+EAA+E;gBAC/E,+EAA+E;aAChF;YACD;gBACE,+EAA+E;gBAC/E,+EAA+E;aAChF;SACF;KACF;IACD,IAAI,EAAE;QACJ;YACE,+EAA+E;YAC/E,+EAA+E;YAC/E,GAAG;SACJ;QACD;YACE,+EAA+E;YAC/E,6EAA6E;YAC7E,GAAG;SACJ;QACD;YACE,+EAA+E;YAC/E,+EAA+E;YAC/E,GAAG;SACJ;QACD;YACE,+EAA+E;YAC/E,+EAA+E;YAC/E,GAAG;SACJ;QACD;YACE,+EAA+E;YAC/E,+EAA+E;YAC/E,GAAG;SACJ;QACD;YACE,+EAA+E;YAC/E,+EAA+E;YAC/E,GAAG;SACJ;QACD;YACE,+EAA+E;YAC/E,8EAA8E;YAC9E,GAAG;SACJ;KACF;CACF,CAAA;AACD,eAAe,eAAe,CAAA"}
package/dist/rln.d.ts ADDED
@@ -0,0 +1,37 @@
1
+ import { RateLimitProof } from "js-waku/lib/interfaces";
2
+ import { WitnessCalculator } from "./witness_calculator.js";
3
+ /**
4
+ * Create an instance of RLN
5
+ * @returns RLNInstance
6
+ */
7
+ export declare function create(): Promise<RLNInstance>;
8
+ export declare class MembershipKey {
9
+ readonly IDKey: Uint8Array;
10
+ readonly IDCommitment: Uint8Array;
11
+ constructor(IDKey: Uint8Array, IDCommitment: Uint8Array);
12
+ static fromBytes(memKeys: Uint8Array): MembershipKey;
13
+ }
14
+ export declare class Proof implements RateLimitProof {
15
+ readonly proof: Uint8Array;
16
+ readonly merkleRoot: Uint8Array;
17
+ readonly epoch: Uint8Array;
18
+ readonly shareX: Uint8Array;
19
+ readonly shareY: Uint8Array;
20
+ readonly nullifier: Uint8Array;
21
+ readonly rlnIdentifier: Uint8Array;
22
+ constructor(proofBytes: Uint8Array);
23
+ }
24
+ export declare function proofToBytes(p: RateLimitProof): Uint8Array;
25
+ export declare class RLNInstance {
26
+ private zkRLN;
27
+ private witnessCalculator;
28
+ constructor(zkRLN: number, witnessCalculator: WitnessCalculator);
29
+ generateMembershipKey(): MembershipKey;
30
+ insertMember(idCommitment: Uint8Array): void;
31
+ getMerkleRoot(): Uint8Array;
32
+ serializeMessage(uint8Msg: Uint8Array, memIndex: number, epoch: Uint8Array, idKey: Uint8Array): Uint8Array;
33
+ generateRLNProof(msg: Uint8Array, index: number, epoch: Uint8Array | Date | undefined, idKey: Uint8Array): Promise<RateLimitProof>;
34
+ verifyRLNProof(proof: RateLimitProof | Uint8Array, msg: Uint8Array): boolean;
35
+ verifyWithRoots(proof: RateLimitProof | Uint8Array, msg: Uint8Array): boolean;
36
+ verifyWithNoRoot(proof: RateLimitProof | Uint8Array, msg: Uint8Array): boolean;
37
+ }