Danish Arora
9b0c5e8311
fix: idCommitmentBigInt must always be less than the contract Q ( #2394 )
...
* chore: idCommitmentBigInt validates against contract Q
* chore: fix linting
* chore: add log
* chore: rename Q and make sync
* fix: test
* chore: remove stubbed contract test
* chore: hardcode default constant for Q
* use non deprecated sha256
* chore: use full 32 bytes for bigint
* chore: all storage in LE, but smart contract interactions in BE
* chore: remove references to idCOmmitmentBigInt in Identity
* chore: don't fetch Q from contract
* chore: ByteUtils as a class
* chore: store Identity in BE, convert during Keystore
* chore: add IDCommitmentBigInt part of Identity
* chore: minor improvements
* chore: switch idTrapdoor to LE
* chore: add logs
* chore: rename `DEFAULT_Q` to `RLN_Q`
* chore: rm spec test
* chore: improve modulo logging
* fix(tests): add IDCommitmentBigInt
2025-07-14 16:35:34 +05:30
Sasha
cd1d909de3
chore: release master ( #2390 )
2025-06-23 22:29:40 +02:00
Sasha
fcc6496fef
chore!: upgrade libp2p, nodejs and typescript ( #2401 )
...
* remove react native package
* upgrade nodejs
* upgrade libp2p
* upgrade typescript, use 22 node
* up lock
* fix node compatibility
* upgrade playwright
* upgrade proto
* update tests
2025-06-22 17:41:23 +02:00
Sasha
1905558753
feat!: re-work messaging parts and sharding ( #2399 )
...
* remove message-hash package, move it to core
* add js-doc to message hash
* up
* address type changes
* fix lint
2025-06-03 11:08:02 +02:00
Danish Arora
3b23bceb9d
feat: refine work with membership info and other meta information ( #2341 )
...
* chore: update definitions to match the ABI
* chore: improve exports and types
* chore: use big endian instead of little endian
* chore: improve logging
* chore: update import
* fix: use overloaded function call
* chore: estimate gas
* test
* npm i
* chore: regen locl
* chore: update
* chore: update playwright docker images
* chore: cannot erase membership if it isn't expired/in grace period
* chore: fix condition
* chore: add `getMembershipStatus` method
* refactor(rln): cache min/max rate limits at contract instantiation
* chore: fix accessor
* chore: rename arg
* chore: allow chromebin path through env
2025-05-29 16:09:08 +05:30
Sasha
e22f211d46
chore: release master
2025-04-23 07:38:08 +02:00
Danish Arora
28f28d0d36
fix(rln): update types to match nwaku ( #2339 )
...
* chore: update types to match nwaku
* chore: add userMessageLimit // not in spec
2025-04-10 14:42:57 +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
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
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