@waku/rln 0.0.1 → 0.0.2-8a6571f.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 (397) hide show
  1. package/README.md +12 -108
  2. package/bundle/_virtual/__node-resolve_empty.js +6 -0
  3. package/bundle/_virtual/_assert.js +3 -0
  4. package/bundle/_virtual/_commonjs-dynamic-modules.js +5 -0
  5. package/bundle/_virtual/_commonjsHelpers.js +32 -0
  6. package/bundle/_virtual/_node-resolve_empty.js +3 -0
  7. package/bundle/_virtual/_sha2.js +3 -0
  8. package/bundle/_virtual/_u64.js +3 -0
  9. package/bundle/_virtual/aes.js +3 -0
  10. package/bundle/_virtual/bn.js +3 -0
  11. package/bundle/_virtual/browser.js +3 -0
  12. package/bundle/_virtual/checksum.js +3 -0
  13. package/bundle/_virtual/cipher.js +3 -0
  14. package/bundle/_virtual/class.js +3 -0
  15. package/bundle/_virtual/common.js +3 -0
  16. package/bundle/_virtual/common2.js +3 -0
  17. package/bundle/_virtual/cryptoBrowser.js +3 -0
  18. package/bundle/_virtual/functional.js +3 -0
  19. package/bundle/_virtual/hash.js +3 -0
  20. package/bundle/_virtual/hmac.js +3 -0
  21. package/bundle/_virtual/index.js +3 -0
  22. package/bundle/_virtual/index2.js +6 -0
  23. package/bundle/_virtual/inherits_browser.js +3 -0
  24. package/bundle/_virtual/kdf.js +3 -0
  25. package/bundle/_virtual/lodash.js +3 -0
  26. package/bundle/_virtual/password.js +3 -0
  27. package/bundle/_virtual/pbkdf2.js +3 -0
  28. package/bundle/_virtual/pbkdf22.js +3 -0
  29. package/bundle/_virtual/random.js +3 -0
  30. package/bundle/_virtual/ripemd.js +3 -0
  31. package/bundle/_virtual/schema-validation-generated.js +3 -0
  32. package/bundle/_virtual/schema-validation.js +3 -0
  33. package/bundle/_virtual/scrypt.js +3 -0
  34. package/bundle/_virtual/scrypt2.js +3 -0
  35. package/bundle/_virtual/sha.js +3 -0
  36. package/bundle/_virtual/sha256.js +3 -0
  37. package/bundle/_virtual/sha2562.js +3 -0
  38. package/bundle/_virtual/sha3.js +3 -0
  39. package/bundle/_virtual/sha512.js +3 -0
  40. package/bundle/_virtual/types.js +3 -0
  41. package/bundle/_virtual/utils.js +3 -0
  42. package/bundle/_virtual/utils2.js +3 -0
  43. package/bundle/_virtual/utils3.js +3 -0
  44. package/bundle/index.js +12 -10
  45. package/bundle/node_modules/@ethersproject/abi/lib.esm/_version.js +3 -0
  46. package/bundle/node_modules/@ethersproject/abi/lib.esm/abi-coder.js +96 -0
  47. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js +148 -0
  48. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/address.js +26 -0
  49. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js +20 -0
  50. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/array.js +210 -0
  51. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js +18 -0
  52. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js +30 -0
  53. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js +26 -0
  54. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/null.js +22 -0
  55. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/number.js +43 -0
  56. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/string.js +19 -0
  57. package/bundle/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js +58 -0
  58. package/bundle/node_modules/@ethersproject/abi/lib.esm/fragments.js +854 -0
  59. package/bundle/node_modules/@ethersproject/abi/lib.esm/interface.js +609 -0
  60. package/bundle/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js +3 -0
  61. package/bundle/node_modules/@ethersproject/abstract-provider/lib.esm/index.js +66 -0
  62. package/bundle/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js +3 -0
  63. package/bundle/node_modules/@ethersproject/abstract-signer/lib.esm/index.js +302 -0
  64. package/bundle/node_modules/@ethersproject/address/lib.esm/_version.js +3 -0
  65. package/bundle/node_modules/@ethersproject/address/lib.esm/index.js +110 -0
  66. package/bundle/node_modules/@ethersproject/base64/lib.esm/base64.js +20 -0
  67. package/bundle/node_modules/@ethersproject/basex/lib.esm/index.js +120 -0
  68. package/bundle/node_modules/@ethersproject/bignumber/lib.esm/_version.js +3 -0
  69. package/bundle/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js +287 -0
  70. package/bundle/node_modules/@ethersproject/bytes/lib.esm/_version.js +3 -0
  71. package/bundle/node_modules/@ethersproject/bytes/lib.esm/index.js +402 -0
  72. package/bundle/node_modules/@ethersproject/constants/lib.esm/addresses.js +3 -0
  73. package/bundle/node_modules/@ethersproject/constants/lib.esm/bignumbers.js +8 -0
  74. package/bundle/node_modules/@ethersproject/constants/lib.esm/hashes.js +3 -0
  75. package/bundle/node_modules/@ethersproject/contracts/lib.esm/_version.js +3 -0
  76. package/bundle/node_modules/@ethersproject/contracts/lib.esm/index.js +893 -0
  77. package/bundle/node_modules/@ethersproject/hash/lib.esm/_version.js +3 -0
  78. package/bundle/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js +256 -0
  79. package/bundle/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js +36 -0
  80. package/bundle/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js +135 -0
  81. package/bundle/node_modules/@ethersproject/hash/lib.esm/id.js +8 -0
  82. package/bundle/node_modules/@ethersproject/hash/lib.esm/namehash.js +64 -0
  83. package/bundle/node_modules/@ethersproject/hash/lib.esm/typed-data.js +443 -0
  84. package/bundle/node_modules/@ethersproject/keccak256/lib.esm/index.js +8 -0
  85. package/bundle/node_modules/@ethersproject/keccak256/node_modules/js-sha3/src/sha3.js +660 -0
  86. package/bundle/node_modules/@ethersproject/logger/lib.esm/_version.js +3 -0
  87. package/bundle/node_modules/@ethersproject/logger/lib.esm/index.js +352 -0
  88. package/bundle/node_modules/@ethersproject/networks/lib.esm/_version.js +3 -0
  89. package/bundle/node_modules/@ethersproject/networks/lib.esm/index.js +248 -0
  90. package/bundle/node_modules/@ethersproject/properties/lib.esm/_version.js +3 -0
  91. package/bundle/node_modules/@ethersproject/properties/lib.esm/index.js +127 -0
  92. package/bundle/node_modules/@ethersproject/providers/lib.esm/_version.js +3 -0
  93. package/bundle/node_modules/@ethersproject/providers/lib.esm/base-provider.js +2007 -0
  94. package/bundle/node_modules/@ethersproject/providers/lib.esm/formatter.js +422 -0
  95. package/bundle/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js +674 -0
  96. package/bundle/node_modules/@ethersproject/providers/lib.esm/web3-provider.js +132 -0
  97. package/bundle/node_modules/@ethersproject/rlp/lib.esm/_version.js +3 -0
  98. package/bundle/node_modules/@ethersproject/rlp/lib.esm/index.js +120 -0
  99. package/bundle/node_modules/@ethersproject/sha2/lib.esm/sha2.js +8 -0
  100. package/bundle/node_modules/@ethersproject/signing-key/lib.esm/_version.js +3 -0
  101. package/bundle/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js +2430 -0
  102. package/bundle/node_modules/@ethersproject/signing-key/lib.esm/index.js +76 -0
  103. package/bundle/node_modules/@ethersproject/strings/lib.esm/_version.js +3 -0
  104. package/bundle/node_modules/@ethersproject/strings/lib.esm/utf8.js +219 -0
  105. package/bundle/node_modules/@ethersproject/transactions/lib.esm/_version.js +3 -0
  106. package/bundle/node_modules/@ethersproject/transactions/lib.esm/index.js +279 -0
  107. package/bundle/node_modules/@ethersproject/web/lib.esm/_version.js +3 -0
  108. package/bundle/node_modules/@ethersproject/web/lib.esm/geturl.js +69 -0
  109. package/bundle/node_modules/@ethersproject/web/lib.esm/index.js +404 -0
  110. package/bundle/node_modules/@multiformats/multiaddr/dist/src/convert.js +15 -0
  111. package/bundle/node_modules/@multiformats/multiaddr/dist/src/multiaddr.js +20 -0
  112. package/bundle/node_modules/@multiformats/multiaddr/dist/src/protocols-table.js +92 -0
  113. package/bundle/node_modules/@noble/hashes/esm/_assert.js +37 -0
  114. package/bundle/node_modules/@noble/hashes/esm/_md.js +132 -0
  115. package/bundle/node_modules/@noble/hashes/esm/_u64.js +29 -0
  116. package/bundle/node_modules/@noble/hashes/esm/sha256.js +113 -0
  117. package/bundle/node_modules/@noble/hashes/esm/sha3.js +210 -0
  118. package/bundle/node_modules/@noble/hashes/esm/utils.js +144 -0
  119. package/bundle/node_modules/@waku/zerokit-rln-wasm/rln_wasm.js +756 -0
  120. package/bundle/node_modules/bech32/index.js +187 -0
  121. package/bundle/node_modules/bn.js/lib/bn.js +3361 -0
  122. package/bundle/node_modules/debug/src/browser.js +283 -0
  123. package/bundle/node_modules/debug/src/common.js +295 -0
  124. package/bundle/node_modules/ethereum-cryptography/esm/keccak.js +10 -0
  125. package/bundle/node_modules/ethereum-cryptography/esm/sha256.js +6 -0
  126. package/bundle/node_modules/ethereum-cryptography/esm/utils.js +24 -0
  127. package/bundle/node_modules/hash.js/lib/hash/common.js +97 -0
  128. package/bundle/node_modules/hash.js/lib/hash/hmac.js +51 -0
  129. package/bundle/node_modules/hash.js/lib/hash/ripemd.js +152 -0
  130. package/bundle/node_modules/hash.js/lib/hash/sha/1.js +81 -0
  131. package/bundle/node_modules/hash.js/lib/hash/sha/224.js +33 -0
  132. package/bundle/node_modules/hash.js/lib/hash/sha/256.js +113 -0
  133. package/bundle/node_modules/hash.js/lib/hash/sha/384.js +39 -0
  134. package/bundle/node_modules/hash.js/lib/hash/sha/512.js +336 -0
  135. package/bundle/node_modules/hash.js/lib/hash/sha/common.js +53 -0
  136. package/bundle/node_modules/hash.js/lib/hash/sha.js +14 -0
  137. package/bundle/node_modules/hash.js/lib/hash/utils.js +282 -0
  138. package/bundle/node_modules/hash.js/lib/hash.js +33 -0
  139. package/bundle/node_modules/inherits/inherits_browser.js +33 -0
  140. package/bundle/node_modules/it-length-prefixed/dist/src/decode.js +6 -0
  141. package/bundle/node_modules/lodash/lodash.js +17207 -0
  142. package/bundle/node_modules/minimalistic-assert/index.js +13 -0
  143. package/bundle/node_modules/ms/index.js +172 -0
  144. package/bundle/node_modules/multiformats/dist/src/bases/base.js +205 -0
  145. package/bundle/node_modules/multiformats/dist/src/bases/base10.js +9 -0
  146. package/bundle/node_modules/multiformats/dist/src/bases/base16.js +16 -0
  147. package/bundle/node_modules/multiformats/dist/src/bases/base2.js +10 -0
  148. package/bundle/node_modules/multiformats/dist/src/bases/base256emoji.js +41 -0
  149. package/bundle/node_modules/multiformats/dist/src/bases/base32.js +58 -0
  150. package/bundle/node_modules/multiformats/dist/src/bases/base36.js +14 -0
  151. package/bundle/node_modules/multiformats/dist/src/bases/base58.js +14 -0
  152. package/bundle/node_modules/multiformats/dist/src/bases/base64.js +28 -0
  153. package/bundle/node_modules/multiformats/dist/src/bases/base8.js +10 -0
  154. package/bundle/node_modules/multiformats/dist/src/bases/identity.js +11 -0
  155. package/bundle/node_modules/multiformats/dist/src/basics.js +15 -0
  156. package/bundle/node_modules/multiformats/dist/src/bytes.js +18 -0
  157. package/bundle/node_modules/multiformats/dist/src/codecs/json.js +2 -0
  158. package/bundle/node_modules/multiformats/dist/src/vendor/base-x.js +170 -0
  159. package/bundle/node_modules/protons-runtime/dist/src/codec.js +20 -0
  160. package/bundle/node_modules/protons-runtime/dist/src/codecs/enum.js +24 -0
  161. package/bundle/node_modules/protons-runtime/dist/src/codecs/message.js +7 -0
  162. package/bundle/node_modules/protons-runtime/dist/src/decode.js +8 -0
  163. package/bundle/node_modules/protons-runtime/dist/src/encode.js +11 -0
  164. package/bundle/node_modules/protons-runtime/dist/src/index.js +30 -0
  165. package/bundle/node_modules/protons-runtime/dist/src/utils/float.js +54 -0
  166. package/bundle/node_modules/protons-runtime/dist/src/utils/longbits.js +175 -0
  167. package/bundle/node_modules/protons-runtime/dist/src/utils/pool.js +28 -0
  168. package/bundle/node_modules/protons-runtime/dist/src/utils/reader.js +367 -0
  169. package/bundle/node_modules/protons-runtime/dist/src/utils/utf8.js +99 -0
  170. package/bundle/node_modules/protons-runtime/dist/src/utils/writer.js +438 -0
  171. package/bundle/node_modules/uint8-varint/dist/src/index.js +124 -0
  172. package/bundle/node_modules/uint8arrays/dist/src/alloc.js +17 -0
  173. package/bundle/node_modules/uint8arrays/dist/src/from-string.js +19 -0
  174. package/bundle/node_modules/uint8arrays/dist/src/util/bases.js +49 -0
  175. package/bundle/packages/core/dist/lib/connection_manager/connection_manager.js +21 -0
  176. package/bundle/packages/core/dist/lib/connection_manager/keep_alive_manager.js +18 -0
  177. package/bundle/packages/core/dist/lib/filter/filter.js +27 -0
  178. package/bundle/packages/core/dist/lib/light_push/light_push.js +27 -0
  179. package/bundle/packages/core/dist/lib/message/version_0.js +154 -0
  180. package/bundle/packages/core/dist/lib/metadata/metadata.js +27 -0
  181. package/bundle/packages/core/dist/lib/store/store.js +27 -0
  182. package/bundle/packages/interfaces/dist/connection_manager.js +19 -0
  183. package/bundle/packages/interfaces/dist/constants.js +6 -0
  184. package/bundle/packages/interfaces/dist/health_indicator.js +12 -0
  185. package/bundle/packages/interfaces/dist/protocols.js +92 -0
  186. package/bundle/packages/proto/dist/generated/filter.js +445 -0
  187. package/bundle/packages/proto/dist/generated/filter_v2.js +424 -0
  188. package/bundle/packages/proto/dist/generated/light_push.js +389 -0
  189. package/bundle/packages/proto/dist/generated/message.js +213 -0
  190. package/bundle/packages/proto/dist/generated/metadata.js +130 -0
  191. package/bundle/packages/proto/dist/generated/peer_exchange.js +209 -0
  192. package/bundle/packages/proto/dist/generated/sds_message.js +105 -0
  193. package/bundle/packages/proto/dist/generated/store_v3.js +490 -0
  194. package/bundle/packages/proto/dist/generated/topic_only_message.js +61 -0
  195. package/bundle/packages/rln/dist/codec.js +93 -0
  196. package/bundle/packages/rln/dist/contract/abi.js +648 -0
  197. package/bundle/packages/rln/dist/contract/constants.js +28 -0
  198. package/bundle/packages/rln/dist/contract/rln_contract.js +438 -0
  199. package/bundle/packages/rln/dist/create.js +9 -0
  200. package/bundle/packages/rln/dist/identity.js +30 -0
  201. package/bundle/packages/rln/dist/keystore/cipher.js +31 -0
  202. package/bundle/packages/rln/dist/keystore/credential_validation_generated.js +119 -0
  203. package/bundle/packages/rln/dist/keystore/keystore.js +223 -0
  204. package/bundle/packages/rln/dist/keystore/keystore_validation_generated.js +74 -0
  205. package/bundle/packages/rln/dist/keystore/schema_validator.js +20 -0
  206. package/bundle/packages/rln/dist/message.js +51 -0
  207. package/bundle/packages/rln/dist/proof.js +54 -0
  208. package/bundle/packages/rln/dist/resources/verification_key.js +112 -0
  209. package/bundle/packages/rln/dist/resources/witness_calculator.js +330 -0
  210. package/bundle/packages/rln/dist/rln.js +228 -0
  211. package/bundle/packages/rln/dist/root_tracker.js +76 -0
  212. package/bundle/packages/rln/dist/utils/bytes.js +65 -0
  213. package/bundle/packages/rln/dist/utils/epoch.js +39 -0
  214. package/bundle/packages/rln/dist/utils/hash.js +10 -0
  215. package/bundle/packages/rln/dist/utils/metamask.js +14 -0
  216. package/bundle/packages/rln/dist/zerokit.js +128 -0
  217. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/checksum.js +52 -0
  218. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/cipher.js +65 -0
  219. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/class.js +99 -0
  220. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/functional.js +103 -0
  221. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/index.js +28 -0
  222. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/kdf.js +78 -0
  223. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/password.js +17 -0
  224. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/schema-validation-generated.js +1253 -0
  225. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/schema-validation.js +40 -0
  226. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/lib/types.js +5 -0
  227. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/aes.js +103 -0
  228. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/pbkdf2.js +41 -0
  229. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/random.js +17 -0
  230. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/scrypt.js +23 -0
  231. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/sha256.js +12 -0
  232. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/utils.js +77 -0
  233. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/index.js +9 -0
  234. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  235. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/nil.js +3 -0
  236. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  237. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/regex.js +3 -0
  238. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/rng.js +21 -0
  239. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  240. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/stringify.js +31 -0
  241. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v1.js +96 -0
  242. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v3.js +6 -0
  243. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v35.js +66 -0
  244. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  245. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v5.js +6 -0
  246. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  247. package/bundle/packages/rln/node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/version.js +11 -0
  248. package/bundle/packages/rln/node_modules/@noble/hashes/_assert.js +52 -0
  249. package/bundle/packages/rln/node_modules/@noble/hashes/_sha2.js +124 -0
  250. package/bundle/packages/rln/node_modules/@noble/hashes/_u64.js +71 -0
  251. package/bundle/packages/rln/node_modules/@noble/hashes/cryptoBrowser.js +10 -0
  252. package/bundle/packages/rln/node_modules/@noble/hashes/hmac.js +88 -0
  253. package/bundle/packages/rln/node_modules/@noble/hashes/pbkdf2.js +99 -0
  254. package/bundle/packages/rln/node_modules/@noble/hashes/scrypt.js +233 -0
  255. package/bundle/packages/rln/node_modules/@noble/hashes/sha256.js +133 -0
  256. package/bundle/packages/rln/node_modules/@noble/hashes/sha512.js +243 -0
  257. package/bundle/packages/rln/node_modules/@noble/hashes/utils.js +167 -0
  258. package/bundle/packages/rln/node_modules/uuid/dist/esm-browser/native.js +4 -0
  259. package/bundle/packages/rln/node_modules/uuid/dist/esm-browser/rng.js +13 -0
  260. package/bundle/packages/rln/node_modules/uuid/dist/esm-browser/stringify.js +28 -0
  261. package/bundle/packages/rln/node_modules/uuid/dist/esm-browser/v4.js +19 -0
  262. package/bundle/packages/utils/dist/bytes/index.js +44 -0
  263. package/bundle/packages/utils/dist/common/sharding/index.js +91 -0
  264. package/bundle/packages/utils/dist/logger/index.js +31 -0
  265. package/bundle/resources/rln.wasm +0 -0
  266. package/bundle/resources/rln_final.zkey +0 -0
  267. package/bundle/resources/verification_key.d.ts +13 -0
  268. package/bundle/resources/verification_key.js +112 -0
  269. package/bundle/resources/witness_calculator.d.ts +11 -0
  270. package/bundle/resources/witness_calculator.js +328 -0
  271. package/dist/.tsbuildinfo +1 -1
  272. package/dist/codec.d.ts +39 -0
  273. package/dist/codec.js +77 -0
  274. package/dist/codec.js.map +1 -0
  275. package/dist/contract/abi.d.ts +46 -0
  276. package/dist/contract/abi.js +647 -0
  277. package/dist/contract/abi.js.map +1 -0
  278. package/dist/contract/constants.d.ts +67 -0
  279. package/dist/contract/constants.js +26 -0
  280. package/dist/contract/constants.js.map +1 -0
  281. package/dist/contract/index.d.ts +2 -0
  282. package/dist/contract/index.js +3 -0
  283. package/dist/contract/index.js.map +1 -0
  284. package/dist/contract/rln_contract.d.ts +127 -0
  285. package/dist/contract/rln_contract.js +432 -0
  286. package/dist/contract/rln_contract.js.map +1 -0
  287. package/dist/create.d.ts +2 -0
  288. package/dist/create.js +8 -0
  289. package/dist/create.js.map +1 -0
  290. package/dist/identity.d.ts +9 -0
  291. package/dist/identity.js +27 -0
  292. package/dist/identity.js.map +1 -0
  293. package/dist/index.d.ts +11 -2
  294. package/dist/index.js +11 -8
  295. package/dist/index.js.map +1 -1
  296. package/dist/keystore/cipher.d.ts +4 -0
  297. package/dist/keystore/cipher.js +28 -0
  298. package/dist/keystore/cipher.js.map +1 -0
  299. package/dist/keystore/credential_validation_generated.d.ts +8 -0
  300. package/dist/keystore/credential_validation_generated.js +121 -0
  301. package/dist/keystore/credential_validation_generated.js.map +1 -0
  302. package/dist/keystore/index.d.ts +4 -0
  303. package/dist/keystore/index.js +3 -0
  304. package/dist/keystore/index.js.map +1 -0
  305. package/dist/keystore/keystore.d.ts +50 -0
  306. package/dist/keystore/keystore.js +205 -0
  307. package/dist/keystore/keystore.js.map +1 -0
  308. package/dist/keystore/keystore_validation_generated.d.ts +8 -0
  309. package/dist/keystore/keystore_validation_generated.js +75 -0
  310. package/dist/keystore/keystore_validation_generated.js.map +1 -0
  311. package/dist/keystore/schema_validator.d.ts +2 -0
  312. package/dist/keystore/schema_validator.js +18 -0
  313. package/dist/keystore/schema_validator.js.map +1 -0
  314. package/dist/keystore/types.d.ts +29 -0
  315. package/dist/keystore/types.js +2 -0
  316. package/dist/keystore/types.js.map +1 -0
  317. package/dist/message.d.ts +18 -0
  318. package/dist/message.js +49 -0
  319. package/dist/message.js.map +1 -0
  320. package/dist/proof.d.ts +21 -0
  321. package/dist/proof.js +50 -0
  322. package/dist/proof.js.map +1 -0
  323. package/dist/resources/rln.wasm +0 -0
  324. package/dist/resources/rln_final.zkey +0 -0
  325. package/dist/resources/verification_key.d.ts +13 -0
  326. package/dist/resources/verification_key.js +112 -0
  327. package/dist/resources/witness_calculator.d.ts +11 -0
  328. package/dist/resources/witness_calculator.js +328 -0
  329. package/dist/rln.d.ts +59 -13
  330. package/dist/rln.js +194 -86
  331. package/dist/rln.js.map +1 -1
  332. package/dist/root_tracker.d.ts +10 -0
  333. package/dist/root_tracker.js +75 -0
  334. package/dist/root_tracker.js.map +1 -0
  335. package/dist/utils/bytes.d.ts +20 -0
  336. package/dist/utils/bytes.js +64 -0
  337. package/dist/utils/bytes.js.map +1 -0
  338. package/dist/utils/epoch.d.ts +3 -0
  339. package/dist/utils/epoch.js +23 -0
  340. package/dist/utils/epoch.js.map +1 -0
  341. package/dist/utils/hash.d.ts +2 -0
  342. package/dist/utils/hash.js +13 -0
  343. package/dist/utils/hash.js.map +1 -0
  344. package/dist/utils/index.d.ts +4 -0
  345. package/dist/utils/index.js +5 -0
  346. package/dist/utils/index.js.map +1 -0
  347. package/dist/utils/metamask.d.ts +2 -0
  348. package/dist/utils/metamask.js +12 -0
  349. package/dist/utils/metamask.js.map +1 -0
  350. package/dist/zerokit.d.ts +23 -0
  351. package/dist/zerokit.js +125 -0
  352. package/dist/zerokit.js.map +1 -0
  353. package/package.json +1 -126
  354. package/src/codec.ts +134 -0
  355. package/src/contract/abi.ts +646 -0
  356. package/src/contract/constants.ts +29 -0
  357. package/src/contract/index.ts +2 -0
  358. package/src/contract/rln_contract.ts +687 -0
  359. package/src/create.ts +9 -0
  360. package/src/identity.ts +31 -0
  361. package/src/index.ts +24 -10
  362. package/src/keystore/cipher.ts +54 -0
  363. package/src/keystore/credential_validation_generated.ts +7 -0
  364. package/src/keystore/index.ts +5 -0
  365. package/src/keystore/keystore.ts +330 -0
  366. package/src/keystore/keystore_validation_generated.ts +7 -0
  367. package/src/keystore/schema_validator.ts +34 -0
  368. package/src/keystore/types.ts +36 -0
  369. package/src/message.ts +70 -0
  370. package/src/proof.ts +69 -0
  371. package/src/resources/verification_key.d.ts +13 -0
  372. package/src/resources/witness_calculator.d.ts +11 -0
  373. package/src/rln.ts +307 -103
  374. package/src/root_tracker.ts +92 -0
  375. package/src/utils/bytes.ts +84 -0
  376. package/src/utils/epoch.ts +30 -0
  377. package/src/utils/hash.ts +15 -0
  378. package/src/utils/index.ts +9 -0
  379. package/src/utils/metamask.ts +17 -0
  380. package/src/zerokit.ts +243 -0
  381. package/bundle/02bce7e5f3bcf834.wasm +0 -0
  382. package/bundle/rln-f87f6dbe.js +0 -563
  383. package/dist/resources.d.ts +0 -4
  384. package/dist/resources.js +0 -5
  385. package/dist/resources.js.map +0 -1
  386. package/dist/witness_calculator.d.ts +0 -16
  387. package/dist/witness_calculator.js +0 -291
  388. package/dist/witness_calculator.js.map +0 -1
  389. package/dist/zerokit/rln_wasm.d.ts +0 -1
  390. package/dist/zerokit/rln_wasm.js +0 -2
  391. package/dist/zerokit/rln_wasm.js.map +0 -1
  392. package/dist/zerokit/rln_wasm_bg.d.ts +0 -108
  393. package/dist/zerokit/rln_wasm_bg.js +0 -592
  394. package/dist/zerokit/rln_wasm_bg.js.map +0 -1
  395. package/dist/zerokit/rln_wasm_bg.wasm +0 -0
  396. package/src/resources.ts +0 -10
  397. package/src/witness_calculator.d.ts +0 -4
@@ -1 +0,0 @@
1
- {"version":3,"file":"resources.js","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GACpB,8gKAA8gK,CAAC;AAEjhK,MAAM,OAAO,GACX,sjvlDAAsjvlD,CAAC;AAEzjvlD,MAAM,IAAI,GACR,0mxhIAA0mxhI,CAAC;AAE7mxhI,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1,16 +0,0 @@
1
- export function builder(code: any, options: any): Promise<WitnessCalculator>;
2
- declare class WitnessCalculator {
3
- constructor(instance: any, sanityCheck: any);
4
- instance: any;
5
- version: any;
6
- n32: any;
7
- prime: bigint;
8
- witnessSize: any;
9
- sanityCheck: any;
10
- circom_version(): any;
11
- _doCalculateWitness(input: any, sanityCheck: any): Promise<void>;
12
- calculateWitness(input: any, sanityCheck: any): Promise<bigint[]>;
13
- calculateBinWitness(input: any, sanityCheck: any): Promise<Uint8Array>;
14
- calculateWTNSBin(input: any, sanityCheck: any): Promise<Uint8Array>;
15
- }
16
- export {};
@@ -1,291 +0,0 @@
1
- // File generated with https://github.com/iden3/circom
2
- // following the instructions from:
3
- // https://github.com/vacp2p/zerokit/tree/master/rln#compiling-circuits
4
- export async function builder(code, options) {
5
- options = options || {};
6
- let wasmModule;
7
- try {
8
- wasmModule = await WebAssembly.compile(code);
9
- }
10
- catch (err) {
11
- console.log(err);
12
- console.log("\nTry to run circom --c in order to generate c++ code instead\n");
13
- throw new Error(err);
14
- }
15
- let wc;
16
- let errStr = "";
17
- let msgStr = "";
18
- const instance = await WebAssembly.instantiate(wasmModule, {
19
- runtime: {
20
- exceptionHandler: function (code) {
21
- let err;
22
- if (code == 1) {
23
- err = "Signal not found.\n";
24
- }
25
- else if (code == 2) {
26
- err = "Too many signals set.\n";
27
- }
28
- else if (code == 3) {
29
- err = "Signal already set.\n";
30
- }
31
- else if (code == 4) {
32
- err = "Assert Failed.\n";
33
- }
34
- else if (code == 5) {
35
- err = "Not enough memory.\n";
36
- }
37
- else if (code == 6) {
38
- err = "Input signal array access exceeds the size.\n";
39
- }
40
- else {
41
- err = "Unknown error.\n";
42
- }
43
- throw new Error(err + errStr);
44
- },
45
- printErrorMessage: function () {
46
- errStr += getMessage() + "\n";
47
- // console.error(getMessage());
48
- },
49
- writeBufferMessage: function () {
50
- const msg = getMessage();
51
- // Any calls to `log()` will always end with a `\n`, so that's when we print and reset
52
- if (msg === "\n") {
53
- console.log(msgStr);
54
- msgStr = "";
55
- }
56
- else {
57
- // If we've buffered other content, put a space in between the items
58
- if (msgStr !== "") {
59
- msgStr += " ";
60
- }
61
- // Then append the message to the message we are creating
62
- msgStr += msg;
63
- }
64
- },
65
- showSharedRWMemory: function () {
66
- printSharedRWMemory();
67
- }
68
- }
69
- });
70
- const sanityCheck = options;
71
- // options &&
72
- // (
73
- // options.sanityCheck ||
74
- // options.logGetSignal ||
75
- // options.logSetSignal ||
76
- // options.logStartComponent ||
77
- // options.logFinishComponent
78
- // );
79
- wc = new WitnessCalculator(instance, sanityCheck);
80
- return wc;
81
- function getMessage() {
82
- var message = "";
83
- var c = instance.exports.getMessageChar();
84
- while (c != 0) {
85
- message += String.fromCharCode(c);
86
- c = instance.exports.getMessageChar();
87
- }
88
- return message;
89
- }
90
- function printSharedRWMemory() {
91
- const shared_rw_memory_size = instance.exports.getFieldNumLen32();
92
- const arr = new Uint32Array(shared_rw_memory_size);
93
- for (let j = 0; j < shared_rw_memory_size; j++) {
94
- arr[shared_rw_memory_size - 1 - j] = instance.exports.readSharedRWMemory(j);
95
- }
96
- // If we've buffered other content, put a space in between the items
97
- if (msgStr !== "") {
98
- msgStr += " ";
99
- }
100
- // Then append the value to the message we are creating
101
- msgStr += (fromArray32(arr).toString());
102
- }
103
- }
104
- ;
105
- class WitnessCalculator {
106
- constructor(instance, sanityCheck) {
107
- this.instance = instance;
108
- this.version = this.instance.exports.getVersion();
109
- this.n32 = this.instance.exports.getFieldNumLen32();
110
- this.instance.exports.getRawPrime();
111
- const arr = new Uint32Array(this.n32);
112
- for (let i = 0; i < this.n32; i++) {
113
- arr[this.n32 - 1 - i] = this.instance.exports.readSharedRWMemory(i);
114
- }
115
- this.prime = fromArray32(arr);
116
- this.witnessSize = this.instance.exports.getWitnessSize();
117
- this.sanityCheck = sanityCheck;
118
- }
119
- circom_version() {
120
- return this.instance.exports.getVersion();
121
- }
122
- async _doCalculateWitness(input, sanityCheck) {
123
- //input is assumed to be a map from signals to arrays of bigints
124
- this.instance.exports.init((this.sanityCheck || sanityCheck) ? 1 : 0);
125
- const keys = Object.keys(input);
126
- var input_counter = 0;
127
- keys.forEach((k) => {
128
- const h = fnvHash(k);
129
- const hMSB = parseInt(h.slice(0, 8), 16);
130
- const hLSB = parseInt(h.slice(8, 16), 16);
131
- const fArr = flatArray(input[k]);
132
- let signalSize = this.instance.exports.getInputSignalSize(hMSB, hLSB);
133
- if (signalSize < 0) {
134
- throw new Error(`Signal ${k} not found\n`);
135
- }
136
- if (fArr.length < signalSize) {
137
- throw new Error(`Not enough values for input signal ${k}\n`);
138
- }
139
- if (fArr.length > signalSize) {
140
- throw new Error(`Too many values for input signal ${k}\n`);
141
- }
142
- for (let i = 0; i < fArr.length; i++) {
143
- const arrFr = toArray32(BigInt(fArr[i]) % this.prime, this.n32);
144
- for (let j = 0; j < this.n32; j++) {
145
- this.instance.exports.writeSharedRWMemory(j, arrFr[this.n32 - 1 - j]);
146
- }
147
- try {
148
- this.instance.exports.setInputSignal(hMSB, hLSB, i);
149
- input_counter++;
150
- }
151
- catch (err) {
152
- // console.log(`After adding signal ${i} of ${k}`)
153
- throw new Error(err);
154
- }
155
- }
156
- });
157
- if (input_counter < this.instance.exports.getInputSize()) {
158
- throw new Error(`Not all inputs have been set. Only ${input_counter} out of ${this.instance.exports.getInputSize()}`);
159
- }
160
- }
161
- async calculateWitness(input, sanityCheck) {
162
- const w = [];
163
- await this._doCalculateWitness(input, sanityCheck);
164
- for (let i = 0; i < this.witnessSize; i++) {
165
- this.instance.exports.getWitness(i);
166
- const arr = new Uint32Array(this.n32);
167
- for (let j = 0; j < this.n32; j++) {
168
- arr[this.n32 - 1 - j] = this.instance.exports.readSharedRWMemory(j);
169
- }
170
- w.push(fromArray32(arr));
171
- }
172
- return w;
173
- }
174
- async calculateBinWitness(input, sanityCheck) {
175
- const buff32 = new Uint32Array(this.witnessSize * this.n32);
176
- const buff = new Uint8Array(buff32.buffer);
177
- await this._doCalculateWitness(input, sanityCheck);
178
- for (let i = 0; i < this.witnessSize; i++) {
179
- this.instance.exports.getWitness(i);
180
- const pos = i * this.n32;
181
- for (let j = 0; j < this.n32; j++) {
182
- buff32[pos + j] = this.instance.exports.readSharedRWMemory(j);
183
- }
184
- }
185
- return buff;
186
- }
187
- async calculateWTNSBin(input, sanityCheck) {
188
- const buff32 = new Uint32Array(this.witnessSize * this.n32 + this.n32 + 11);
189
- const buff = new Uint8Array(buff32.buffer);
190
- await this._doCalculateWitness(input, sanityCheck);
191
- //"wtns"
192
- buff[0] = "w".charCodeAt(0);
193
- buff[1] = "t".charCodeAt(0);
194
- buff[2] = "n".charCodeAt(0);
195
- buff[3] = "s".charCodeAt(0);
196
- //version 2
197
- buff32[1] = 2;
198
- //number of sections: 2
199
- buff32[2] = 2;
200
- //id section 1
201
- buff32[3] = 1;
202
- const n8 = this.n32 * 4;
203
- //id section 1 length in 64bytes
204
- const idSection1length = 8 + n8;
205
- const idSection1lengthHex = idSection1length.toString(16);
206
- buff32[4] = parseInt(idSection1lengthHex.slice(0, 8), 16);
207
- buff32[5] = parseInt(idSection1lengthHex.slice(8, 16), 16);
208
- //this.n32
209
- buff32[6] = n8;
210
- //prime number
211
- this.instance.exports.getRawPrime();
212
- var pos = 7;
213
- for (let j = 0; j < this.n32; j++) {
214
- buff32[pos + j] = this.instance.exports.readSharedRWMemory(j);
215
- }
216
- pos += this.n32;
217
- // witness size
218
- buff32[pos] = this.witnessSize;
219
- pos++;
220
- //id section 2
221
- buff32[pos] = 2;
222
- pos++;
223
- // section 2 length
224
- const idSection2length = n8 * this.witnessSize;
225
- const idSection2lengthHex = idSection2length.toString(16);
226
- buff32[pos] = parseInt(idSection2lengthHex.slice(0, 8), 16);
227
- buff32[pos + 1] = parseInt(idSection2lengthHex.slice(8, 16), 16);
228
- pos += 2;
229
- for (let i = 0; i < this.witnessSize; i++) {
230
- this.instance.exports.getWitness(i);
231
- for (let j = 0; j < this.n32; j++) {
232
- buff32[pos + j] = this.instance.exports.readSharedRWMemory(j);
233
- }
234
- pos += this.n32;
235
- }
236
- return buff;
237
- }
238
- }
239
- function toArray32(rem, size) {
240
- const res = []; //new Uint32Array(size); //has no unshift
241
- const radix = BigInt(0x100000000);
242
- while (rem) {
243
- res.unshift(Number(rem % radix));
244
- rem = rem / radix;
245
- }
246
- if (size) {
247
- var i = size - res.length;
248
- while (i > 0) {
249
- res.unshift(0);
250
- i--;
251
- }
252
- }
253
- return res;
254
- }
255
- function fromArray32(arr) {
256
- var res = BigInt(0);
257
- const radix = BigInt(0x100000000);
258
- for (let i = 0; i < arr.length; i++) {
259
- res = res * radix + BigInt(arr[i]);
260
- }
261
- return res;
262
- }
263
- function flatArray(a) {
264
- var res = [];
265
- fillArray(res, a);
266
- return res;
267
- function fillArray(res, a) {
268
- if (Array.isArray(a)) {
269
- for (let i = 0; i < a.length; i++) {
270
- fillArray(res, a[i]);
271
- }
272
- }
273
- else {
274
- res.push(a);
275
- }
276
- }
277
- }
278
- function fnvHash(str) {
279
- const uint64_max = BigInt(2) ** BigInt(64);
280
- let hash = BigInt("0xCBF29CE484222325");
281
- for (var i = 0; i < str.length; i++) {
282
- hash ^= BigInt(str[i].charCodeAt());
283
- hash *= BigInt(0x100000001B3);
284
- hash %= uint64_max;
285
- }
286
- let shash = hash.toString(16);
287
- let n = 16 - shash.length;
288
- shash = '0'.repeat(n).concat(shash);
289
- return shash;
290
- }
291
- //# sourceMappingURL=witness_calculator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"witness_calculator.js","sourceRoot":"","sources":["../src/witness_calculator.js"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,mCAAmC;AACnC,uEAAuE;AAEvE,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,IAAI,EAAE,OAAO;IAEvC,OA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"}
@@ -1 +0,0 @@
1
- export * from "./rln_wasm_bg.js";
@@ -1,2 +0,0 @@
1
- export * from "./rln_wasm_bg.js";
2
- //# sourceMappingURL=rln_wasm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rln_wasm.js","sourceRoot":"","sources":["../../src/zerokit/rln_wasm.js"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC"}
@@ -1,108 +0,0 @@
1
- /**
2
- */
3
- export function init_panic_hook(): void;
4
- /**
5
- * @param {number} tree_height
6
- * @param {Uint8Array} zkey
7
- * @param {Uint8Array} vk
8
- * @returns {number}
9
- */
10
- export function newRLN(tree_height: number, zkey: Uint8Array, vk: Uint8Array): number;
11
- /**
12
- * @param {number} ctx
13
- * @param {Uint8Array} input
14
- * @returns {Uint8Array}
15
- */
16
- export function getSerializedRLNWitness(ctx: number, input: Uint8Array): Uint8Array;
17
- /**
18
- * @param {number} ctx
19
- * @param {Uint8Array} input
20
- */
21
- export function insertMember(ctx: number, input: Uint8Array): void;
22
- /**
23
- * @param {number} ctx
24
- * @param {Uint8Array} serialized_witness
25
- * @returns {object}
26
- */
27
- export function RLNWitnessToJson(ctx: number, serialized_witness: Uint8Array): object;
28
- /**
29
- * @param {number} ctx
30
- * @param {(bigint)[]} calculated_witness
31
- * @param {Uint8Array} serialized_witness
32
- * @returns {Uint8Array}
33
- */
34
- export function generate_rln_proof_with_witness(ctx: number, calculated_witness: (bigint)[], serialized_witness: Uint8Array): Uint8Array;
35
- /**
36
- * @param {number} ctx
37
- * @returns {Uint8Array}
38
- */
39
- export function generateMembershipKey(ctx: number): Uint8Array;
40
- /**
41
- * @param {number} ctx
42
- * @param {Uint8Array} proof
43
- * @returns {boolean}
44
- */
45
- export function verifyProof(ctx: number, proof: Uint8Array): boolean;
46
- export function __wbindgen_string_new(arg0: any, arg1: any): number;
47
- export function __wbindgen_object_drop_ref(arg0: any): void;
48
- export function __wbindgen_is_string(arg0: any): boolean;
49
- export function __wbindgen_string_get(arg0: any, arg1: any): void;
50
- export function __wbg_BigInt_73b2c10d8e6eb5a5(arg0: any, arg1: any): number;
51
- export function __wbindgen_number_new(arg0: any): number;
52
- export function __wbg_BigInt_1a499fbb5f402f4c(arg0: any, arg1: any): number;
53
- export function __wbindgen_object_clone_ref(arg0: any): number;
54
- export function __wbindgen_is_undefined(arg0: any): boolean;
55
- export function __wbindgen_is_object(arg0: any): boolean;
56
- export function __wbg_set_e93b31d47b90bff6(arg0: any, arg1: any, arg2: any): void;
57
- export function __wbg_new_693216e109162396(): number;
58
- export function __wbg_stack_0ddaca5d1abfb52f(arg0: any, arg1: any): void;
59
- export function __wbg_error_09919627ac0992f5(arg0: any, arg1: any): void;
60
- export function __wbg_process_e56fd54cf6319b6c(arg0: any): number;
61
- export function __wbg_versions_77e21455908dad33(arg0: any): number;
62
- export function __wbg_node_0dd25d832e4785d5(arg0: any): number;
63
- export function __wbg_static_accessor_NODE_MODULE_26b231378c1be7dd(): number;
64
- export function __wbg_require_0db1598d9ccecb30(...args: any[]): any;
65
- export function __wbg_crypto_b95d7173266618a9(arg0: any): number;
66
- export function __wbg_msCrypto_5a86d77a66230f81(arg0: any): number;
67
- export function __wbg_getRandomValues_b14734aa289bc356(...args: any[]): any;
68
- export function __wbg_randomFillSync_91e2b39becca6147(...args: any[]): any;
69
- export function __wbg_new_ee1a3da85465d621(): number;
70
- export function __wbg_newnoargs_971e9a5abe185139(arg0: any, arg1: any): number;
71
- export function __wbg_new_ac586205e4424583(): number;
72
- export function __wbg_call_33d7bcddbbfa394a(...args: any[]): any;
73
- export function __wbg_new_e6a9fecc2bf26696(): number;
74
- export function __wbg_self_fd00a1ef86d1b2ed(...args: any[]): any;
75
- export function __wbg_window_6f6e346d8bbd61d7(...args: any[]): any;
76
- export function __wbg_globalThis_3348936ac49df00a(...args: any[]): any;
77
- export function __wbg_global_67175caf56f55ca9(...args: any[]): any;
78
- export function __wbg_set_64cc39858b2ec3f1(arg0: any, arg1: any, arg2: any): void;
79
- export function __wbg_toString_b1dd862c6b41dd95(...args: any[]): any;
80
- export function __wbg_new_3ee7ebe9952c1fbd(arg0: any, arg1: any): number;
81
- export function __wbg_set_a55cff623a9eaa21(arg0: any, arg1: any, arg2: any): number;
82
- export function __wbg_fromEntries_576d8e028b09637c(...args: any[]): any;
83
- export function __wbg_buffer_34f5ec9f8a838ba0(arg0: any): number;
84
- export function __wbg_newwithbyteoffsetandlength_88fdad741db1b182(arg0: any, arg1: any, arg2: any): number;
85
- export function __wbg_new_cda198d9dbc6d7ea(arg0: any): number;
86
- export function __wbg_set_1a930cfcda1a8067(arg0: any, arg1: any, arg2: any): void;
87
- export function __wbg_length_51f19f73d6d9eff3(arg0: any): any;
88
- export function __wbg_newwithlength_66e5530e7079ea1b(arg0: any): number;
89
- export function __wbg_subarray_270ff8dd5582c1ac(arg0: any, arg1: any, arg2: any): number;
90
- export function __wbindgen_debug_string(arg0: any, arg1: any): void;
91
- export function __wbindgen_throw(arg0: any, arg1: any): void;
92
- export function __wbindgen_memory(): number;
93
- /**
94
- */
95
- export class RLN {
96
- __destroy_into_raw(): number | undefined;
97
- ptr: number | undefined;
98
- free(): void;
99
- }
100
- /**
101
- * A struct representing an aborted instruction execution, with a message
102
- * indicating the cause.
103
- */
104
- export class WasmerRuntimeError {
105
- __destroy_into_raw(): number | undefined;
106
- ptr: number | undefined;
107
- free(): void;
108
- }