Commit Graph

116 Commits

Author SHA1 Message Date
Sasha f6d5deb8cb
chore: bump version (#108) 2024-04-08 09:55:19 +03:00
Arseniy Klempner 126bce32f7
fix: use correct offset when converting commitment to bigint (#103) 2024-03-22 13:11:46 +01:00
Sasha 3dc59084c9
fix: improve mapping over blocks (#100) 2024-03-05 23:41:38 +01:00
Sasha 6454446c1c
feat: align ts and tests to js-waku (#99)
* adjust config

* fix all lint issues

* fix ts build

* fix test issue

* fix ci

* add browser

* imporve wasm test

* fix wasm karma server

* try

* try

* add output folder

* try production config

* fix test runner
2024-03-01 01:07:33 +01:00
Sasha 65b7d8bcbc
feat!: restructure package (#98)
* decouple utils, remove global variables

* decouple hash utils

* decouple proof related stuff

* move to utils, move to resources

* decouple zerokit

* fix spelling

* fix mock

* remove auto prettier, typo

* retur prettier

* comma
2024-02-17 00:22:47 +01:00
Sasha e1679b6bd9
bug: fix access to the network (#97) 2024-02-14 00:13:49 +01:00
Sasha 86d4f56818
chore: bump to 0.1.2 (#96) 2024-02-13 22:27:19 +01:00
Sasha ac12f6800a
feat: improve cred managment (#95) 2024-02-13 22:19:35 +01:00
Sasha 77ba0a6d5d
feat!: add new operations and improve start (#93)
* featimprove start, types, import/export, add checks for netwrok, shortcuts for decoder encoder

* fix type issue

* update tests

* provide ability to use Keystore as a seed for credentials

* fix types

* up test

* initialize keystore by default

* add keys operation to Keystore
2024-01-30 22:28:12 +01:00
Sasha bafbe01e52
feat: simplify API of bootstrapping, connection to MetaMask (#92)
* add MetaMask abstraction, add default start to RLN Instance, expose RLN Contract

* remove console timer

* improve text

* rename to createRLN

* update README, fix tests

* use Provider type

* use provider as it is
2024-01-24 21:23:52 +01:00
Vaclav Pavlin 18ce994d5e
fix: failing README instructions for example (#88) 2024-01-03 00:52:22 +01:00
Sasha 9b1e8187da
fix: zeroPad util (#87)
* fix: idCommitmnet little endianess

* stop double conversion

* fix problem with zeroPad

* fix test
2023-12-01 14:04:07 +01:00
Sasha 0c98a266e2
fix: idCommitmnet little endianess (#86)
* fix: idCommitmnet little endianess

* stop double conversion
2023-12-01 13:20:48 +01:00
Sasha 60a50709c7
chore: keep 5 roots by default (#84) 2023-11-27 12:09:31 +01:00
Sasha 0fbf6beec8
bug: fix insert / remove spam (#83) 2023-11-22 23:13:59 +01:00
Sasha 530034bf13
chore: update zerokit to 0.0.13(#81)
* chore: update zerokit

* update to 0.0.12

* use 0.0.13

* up waku version
2023-11-08 21:43:06 +01:00
Sasha 7e8cb899be
chore: update @waku/* packages (#77)
* update @waku/* packages

* fix typing

* remove type
2023-10-28 14:19:56 +02:00
Sasha fa49e29856
feat: use Proxy contract address, add fixes to RLN Contract (#74)
* use Proxy contract address, add fixes to RLN Contract

* whitelist word

* update tesst

* up mock

* up

* fixes to contract, keystore and utils

* whitelist word

* update tests

* move to hash map

* up mock

* up
2023-10-19 03:23:05 +02:00
Sasha 89283768c3
chore: test fixes (#73) 2023-10-17 11:36:37 +02:00
Sasha 5b9414aede
feat: update contract (#72)
* feat: update contract

* update ABI

* update contract and fix name of ABI

* update exports

* ignore constants

* fix tests

* update mock

* up mock

* add logs

* add mock
2023-10-17 11:26:17 +02:00
Sasha 891ee3474a
feat: keystore implementation (#70)
* add deps

* complete keystore, move code

* remove esling

* rename command

* rename export

* fix bug

* rollback example

* rollback example[2]

* improve compatibility with nwaku

* add packages

* update example

* add keystore.spec.ts

* up node, add whitelist words

* add types

* try break test

* add test

* add more tests

* add helper functions, update example, add tests

* fix types

* fix test

* add logs

* fix build of the object

* use different approach to catch errors

* run one test

* anotehr one

* fix validation error

* apply last fixes

* update example

* up

* ignroe generated files

* up

* up

* fix test

* test

* fix

* up

* add prettier ignore

* up

* fix lint

* up

* last
2023-10-14 02:21:35 +02:00
richΛrd 5d7f77f300
fix: add `moduleResolution` to `package.json` (#65)
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-07-03 10:30:03 -04:00
fryorcraken.eth b429b055db
Merge pull request #61 from waku-org/feat/meta 2023-05-24 11:13:37 +10:00
fryorcraken.eth 5fb26dfd16
feat: Expose `meta` field and ensure encoder sets it 2023-05-24 10:48:11 +10:00
fryorcraken.eth 71aa967a86
chore: bump @waku packages 2023-05-24 10:48:11 +10:00
RichΛrd fa1d3f8222
fix: merkle root import (#64) 2023-05-23 07:08:59 -04:00
RichΛrd 7e93896538
feat: track roots in rln contract and use sepolia instead of goerli (#62) 2023-05-14 12:18:21 -04:00
fryorcraken.eth b7cb3f9bbf
chore: bump @waku/core to 0.0.17 (#60)
* chore: bump mocha

9.x has a vulnerability

* chore: bump @waku/core to 0.0.17

And other Waku packages.

* chore: npm audit fix

* chore: bump @waku/interfaces to 0.0.12
2023-05-10 12:19:46 +02:00
RichΛrd e52107dcf8
feat: use identity credentials, and expose hash, bulk insert and delete members functions (#58)
* feat: use identity credentials, and expose hash, bulk insert and delete members functions
* feat: merkle root tracker
2023-05-08 18:10:26 -04:00
Sasha 7e0966aef7
feat: add custom queryFilter (#57)
* add custom fetcher

* improve fetch in chunks

* remove comment

* fetch in portions of 5

* allow to configure fetch params

* add error log
2023-04-28 01:20:29 +02:00
Sasha 88a28a11e3
feat!: add registerMemberFromMembershipKey (#56)
* add registerMemberFromMembershipKey
* make better naming
2023-04-19 23:28:04 +02:00
Sasha 360dc829f5
chore!: bump to new @waku (#55)
* move to newer version

* fix import

* add content topic on the message

* update types

* address comments

* setup getter
2023-04-19 20:02:13 +02:00
fryorcraken.eth fae4bea48d
Merge pull request #50 from waku-org/doc/39-update-readme 2023-02-27 09:34:18 +11:00
fryorcraken.eth bdf388f8d5
chore: update cspell dictionary 2023-02-24 15:36:27 +11:00
fryorcraken.eth 45d1b28286
doc: note about semaphore compatibility 2023-02-24 15:34:49 +11:00
fryorcraken.eth ed22a3f66b
doc: update repo's rationale
Fixes #39
2023-02-24 15:32:16 +11:00
Sasha d77370fbec
Add RLN Contract abstraction (#43)
* implement rln contract abstraction, add basic tests, add usefull constants

* remove test command

* resolve simple comments

* move to getter for members, add init method

* fix naming

* remove default signature message

* use direct path to js file

* try different karma config

* try generic import

* update test

* address comments: rename const file, return prev regexp

* remove test

* bring back test file

* fix mock approach

* use any for type casting

* use another approach for typecasting

* update mocks

* update mocked event

* use correct value for mock

* fix spy definition

* add BigInt to MembershipKey

* fix joining

* use slice

* remove accidentally commited junk

* fix typo, use DataView for conversion, use BigInt directly

Co-authored-by: weboko <anon@mail.com>
2023-01-26 18:58:18 +01:00
RichΛrd fa70837558
Merge pull request #42 from waku-org/version0013
v0.0.13
2022-12-09 09:46:51 -04:00
Richard Ramos 01ac9da9c6
v0.0.13 2022-12-09 09:42:43 -04:00
Danish Arora f312f3d0e9
Merge pull request #41 from waku-org/danisharora/seeded-membershipkey-generation 2022-12-09 08:49:05 +05:30
danisharora099 febc7e7fa5
compare uint8arrays by each element 2022-12-08 15:02:18 +05:30
danisharora099 d41181fc92
upgrade zerokit and add support for generateSeededMembershipKey 2022-12-08 14:52:04 +05:30
fryorcraken.eth 6875952b61
Merge pull request #36 from waku-org/feat/verify-no-root 2022-10-11 02:07:26 +11:00
fryorcraken.eth 93fe74619e
feat: expose verifyNotRoot API 2022-10-10 09:59:41 -05:00
fryorcraken.eth ccac8291e1
Merge pull request #35 from waku-org/fix/epoch-decoding 2022-10-11 00:53:13 +11:00
fryorcraken.eth 8eb7779ecd
fix: proof generated log 2022-10-10 08:50:50 -05:00
fryorcraken.eth da8c4b2204
fix: epoch decoding 2022-10-10 08:48:34 -05:00
fryorcraken.eth 6ecdc598d5
Merge pull request #34 from waku-org/chores/log-proof 2022-10-10 23:32:20 +11:00
fryorcraken.eth bb93a34e30
chores: log epoch 2022-10-10 07:27:53 -05:00
fryorcraken.eth ebf147969d
chores: change log to waku:rln namespace 2022-10-10 07:24:09 -05:00