55 Commits

Author SHA1 Message Date
Sasha
0fbf6beec8
bug: fix insert / remove spam (#83) 2023-11-22 23:13:59 +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
5fb26dfd16
feat: Expose meta field and ensure encoder sets it 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
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
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
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
93fe74619e
feat: expose verifyNotRoot API 2022-10-10 09:59:41 -05: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
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
fryorcraken.eth
822b6240b6
chores: log proof generated 2022-10-10 07:22:53 -05:00
Richard Ramos
78f9e9b38f
feat: use verifyWithRoots for verifying proofs 2022-10-07 15:50:36 -04:00
Richard Ramos
3e5cb1d13c
fix: proof generation and validation 2022-10-04 16:46:55 +11:00
fryorcraken.eth
77eb467cab
feat: test codec with version 1 codec 2022-09-30 14:46:18 +10:00
fryorcraken.eth
748f14cec9
fix: ensure proof is attached when decoding 2022-09-30 14:26:07 +10:00
fryorcraken.eth
382794d25f
feat: add RlnMessage for handy helpers 2022-09-28 14:23:10 +10:00
fryorcraken.eth
b0b9e1e46b
refactor: use standard JS lib 2022-09-28 14:16:56 +10:00
fryorcraken.eth
50c30f1332
feat: decode epoch to int 2022-09-28 14:16:56 +10:00
fryorcraken.eth
4463c4afab
refactor: extract helper functions 2022-09-28 13:54:08 +10:00
fryorcraken.eth
84803d77e5
refactor: more appropriate name 2022-09-28 13:54:08 +10:00
fryorcraken.eth
a11f65f1b7
fix: export encoder/decoder 2022-09-27 23:31:09 +10:00
fryorcraken.eth
462b6e5ccf
fix: export MembershipKey class 2022-09-27 22:47:55 +10:00
fryorcraken.eth
38fdb53740
chore: remove any types 2022-09-27 22:41:25 +10:00
fryorcraken.eth
9ff1a0b97e
feat: enable MembershipKey object to be created from existing creds 2022-09-27 22:29:37 +10:00
fryorcraken.eth
c1fb1f52ca
chore: fix format 2022-09-27 13:56:54 +10:00
fryorcraken.eth
5e8e997f21
Merge pull request #16 from waku-org/feat/encoder 2022-09-27 13:45:45 +10:00
fryorcraken.eth
7c8b3f1f98
fix: content topic can be utf-8 2022-09-27 13:45:14 +10:00
Richard Ramos
b9269660c8
refactor: RateLimitProof 2022-09-26 17:53:49 -04:00
Richard Ramos
3ce01eaa10
feat: add spec and decoder 2022-09-26 12:08:28 -04:00
fryorcraken.eth
d1c18cb214
fix: package verification key
JSON file was not included in the bundle.

JSON files are generally annoying to bundle, easier to just have the data
in a JS file.
2022-09-26 10:51:04 +10:00
fryorcraken.eth
b83427ccfb
fix: correct import 2022-09-26 10:09:39 +10:00
Richard Ramos
b1dbf16b35
feat: message encoder 2022-09-25 11:40:49 -04:00
Richard Ramos
29f09af131
feat: fetch resources and fix bundle (#15) 2022-09-24 13:59:13 -04:00
Richard Ramos
7752534855
feat: add spec for proof generation and verification (#14) 2022-09-24 11:00:40 -04:00
Richard Ramos
2cbbbf3690
chore: tests setup (#13) 2022-09-23 21:35:17 -04:00
Richard Ramos
af3dc15d82
fix: use zerokit-rln-wasm and remove zerokit output files from project (#12) 2022-09-23 12:33:03 -04:00
fryorcraken.eth
5587690843
fix: .js extension is needed in module package 2022-09-23 16:53:00 +10:00
fryorcraken.eth
518b32bc8a
style: run format 2022-09-23 16:36:17 +10:00