30 Commits

Author SHA1 Message Date
Sasha
4b8a38c7f8
decouple proof related stuff 2024-02-16 00:29:21 +01:00
Sasha
58435f74b5
decouple hash utils 2024-02-16 00:19:42 +01:00
Sasha
603a99b008
decouple utils, remove global variables 2024-02-15 23:56:26 +01:00
Sasha
e1679b6bd9
bug: fix access to the network (#97) 2024-02-14 00:13:49 +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
Sasha
7e8cb899be
chore: update @waku/* packages (#77)
* update @waku/* packages

* fix typing

* remove type
2023-10-28 14:19:56 +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
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
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
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
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
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
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
5e8e997f21
Merge pull request #16 from waku-org/feat/encoder 2022-09-27 13:45:45 +10:00
Richard Ramos
b9269660c8
refactor: RateLimitProof 2022-09-26 17:53:49 -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
Richard Ramos
29f09af131
feat: fetch resources and fix bundle (#15) 2022-09-24 13:59:13 -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
Richard Ramos
1e83f0a70e fix: remove buffer usage and simplify epoch handling 2022-09-22 17:19:55 -04:00
Richard Ramos
24c6c8e3d7 feat: generate and validate proofs 2022-09-19 16:33:37 -04:00