14 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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