42 Commits

Author SHA1 Message Date
Danish Arora
053bb95c3a
chore: simplify rln zerokit to prefer direct calls over events 2025-04-07 23:11:46 +05:30
Danish Arora
9eeeb846f2
chore: prefer direct calls over events 2025-04-07 22:58:38 +05:30
Danish Arora
7fb299f354
chore: improve error handling 2025-04-07 22:47:09 +05:30
Danish Arora
629b977e3c
chore: membership index from mapping instead of events 2025-04-07 22:42:54 +05:30
Danish Arora
6dc7b07fa8
Merge branch 'master' of github.com:waku-org/js-waku into chore/match-spec-format 2025-04-07 20:23:30 +05:30
Danish Arora
4adf8706c3
feat(rln): create CredentialsManager without Zerokit (#2295)
* chore: update ABI

* chore: update contract address and chain ID to Linea Sepolia

* chore: improve error handling

* fix: bigint conversion

* chore: update tests

* chore: clean comments

* chore: export keystore types

* chore: update README with contract address

* tests: add reusable mock functions

* chore: LINEA_CONTRACT instead of SEPOLIA_CONTRACT

* chore: add linea to cspell

* chore: add rateLimit to MembershipInfo

* fix: determine start options

* feat: RLNLight

* chore: fix

* chore: export

* fix: returns for ratelimit

* chore: big number conversions

* chore: rename RLNLight to CredentialsManager, add logs

* chore: setup and use rln_base_contract

* chore: use CredentialsManager for rln.ts

* chore: public methods written above private methods

* fix: rate limit getter

* chore: simplify getters/setters

* chore: insert empty line
2025-04-07 16:04:06 +05:30
Danish Arora
990186355e
chore: update types 2025-04-04 15:57:51 +05:30
Danish Arora
8f85be3b34
Merge branch 'feat/rln-light-without-zerokit' of github.com:waku-org/js-waku into chore/match-spec-format 2025-04-04 15:55:06 +05:30
Danish Arora
6997987a60
chore: public methods written above private methods 2025-04-03 19:56:11 +05:30
Danish Arora
7aaa84a68c
chore: use CredentialsManager for rln.ts 2025-04-03 19:51:55 +05:30
Danish Arora
9f8fd15ba9
chore: setup and use rln_base_contract 2025-04-03 18:21:40 +05:30
Danish Arora
317d835c3a
chore: rename RLNLight to CredentialsManager, add logs 2025-04-02 20:39:03 +05:30
Danish Arora
ad0e277525
test 2025-04-02 20:19:15 +05:30
Danish Arora
f39d215cca
chore: use array of arrays with named obj structure for identity credential 2025-04-02 18:30:11 +05:30
Danish Arora
861a776d05
chore: treeIndex as number 2025-04-02 17:33:10 +05:30
Danish Arora
cad3e7afc5
chore: update treeIndex to be a hexadecimal 2025-04-02 17:22:03 +05:30
Danish Arora
69ec4082bf
chore: update keystore/identity format to spec 2025-04-02 17:17:19 +05:30
Danish Arora
38f6b9c215
chore: treeIndex to be a string 2025-04-02 16:37:54 +05:30
Danish Arora
0c9ac61ae7
chore: chainId to be a string 2025-04-02 16:35:49 +05:30
Danish Arora
1e6e9092fa
Merge branch 'master' of github.com:waku-org/js-waku into feat/rln-light-without-zerokit 2025-03-31 15:24:37 +05:30
Danish Arora
a8ff776962
chore(rln): update ABI and contract address to Linea Sepolia, enhancements (#2294)
* chore: update ABI

* chore: update contract address and chain ID to Linea Sepolia

* chore: improve error handling

* fix: bigint conversion

* chore: update tests

* chore: clean comments

* chore: export keystore types

* chore: update README with contract address

* tests: add reusable mock functions

* chore: LINEA_CONTRACT instead of SEPOLIA_CONTRACT

* chore: add linea to cspell

* chore: add rateLimit to MembershipInfo

* fix(tests): rate limit additions

* chore: update gitignore
2025-03-31 14:32:29 +05:30
Danish Arora
6198efbe4c
chore: big number conversions 2025-03-27 12:46:47 +05:30
Danish Arora
5e19700f40
fix: returns for ratelimit 2025-03-27 11:10:12 +05:30
Danish Arora
eb555e95b5
chore: export 2025-03-27 11:00:47 +05:30
Danish Arora
d07080ebe4
chore: fix 2025-03-27 11:00:35 +05:30
Danish Arora
b73929be99
feat: RLNLight 2025-03-27 11:00:34 +05:30
Danish Arora
df5b9c6afa
fix: determine start options 2025-03-27 10:59:59 +05:30
Danish Arora
76f86de9c7
chore: add rateLimit to MembershipInfo 2025-03-27 10:54:51 +05:30
Danish Arora
41c5763bc2
chore: LINEA_CONTRACT instead of SEPOLIA_CONTRACT 2025-03-26 15:46:08 +05:30
Danish Arora
d528534a1d
tests: add reusable mock functions 2025-03-26 15:43:31 +05:30
Danish Arora
4fc9cca0cc
chore: update README with contract address 2025-03-26 15:39:49 +05:30
Danish Arora
52011fe83d
chore: export keystore types 2025-03-26 15:39:48 +05:30
Danish Arora
0f04b04704
chore: clean comments 2025-03-26 15:39:48 +05:30
Danish Arora
1026e5e262
chore: update tests 2025-03-26 15:39:48 +05:30
Danish Arora
7adb05431e
fix: bigint conversion 2025-03-26 15:39:48 +05:30
Danish Arora
43c7843a5a
chore: improve error handling 2025-03-26 15:39:48 +05:30
Danish Arora
2438a562b4
chore: update contract address and chain ID to Linea Sepolia 2025-03-26 15:39:47 +05:30
Danish Arora
6db7b4cab9
chore: update ABI 2025-03-26 15:39:47 +05:30
Sasha
ea6daae927
chore: release master (#2311) 2025-03-24 14:41:33 +01:00
Sasha
e0b8bd8c9c
chore: update release please and add packages (#2305) 2025-03-20 00:40:34 +01:00
Danish Arora
6fc6bf3916
feat(rln): migrate from v1 to v2, rate limiting, memberships, test coverage (#2262)
* chore: update ABIs and deployed address

* chore: remove storage contract references

* feat: upgrading adapter to basic rlnv2

* feat: rate limit

* chore: upgrade packages revert

* fix: tests

* chore: remove uneeded file

* feat(rln): implement RLNv2 rate limiting and membership states

- Add rate limit validation and handling in proof generation/verification
- Implement membership lifecycle state management (Active/GracePeriod/Expired)
- Add new membership management methods:
  - getMembershipInfo
  - extendMembership
  - eraseMembership
  - registerMembership
- Update proof verification to include rate limit checks
- Refactor message serialization to include rate limit data

Breaking changes:
- verifyWithRoots now takes roots as array instead of spread parameters
- Proof verification methods now accept optional rateLimit parameter

* fix: typo

* chore: add to cspell

* chore: reduce diff

* chore: simplify subdir for abi

* chore: address comments

* chore: simplify access to variables

* chore: address comments

* chore: simplify constants

* chore: add error handling

* chore: change rln v2 references to rln

* fix: check
2025-03-03 18:14:06 +05:30
Danish Arora
0a0a92bccb
feat: @waku/rln (#2244)
* chore: setup rln as a new package

* chore: migrate src

* fix: wasm loading, tests, config

* chore: fix Karma CI

* fix: bundler

* chore: copy dist resources

* chore(rln): enable all tests

* chore: increase karma timeouts
2025-02-11 15:28:00 +05:30