Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js-rln keystore is not compatible with nwaku #80

Closed
alrevuelta opened this issue Nov 7, 2023 · 2 comments · Fixed by waku-org/nwaku#2200
Closed

js-rln keystore is not compatible with nwaku #80

alrevuelta opened this issue Nov 7, 2023 · 2 comments · Fixed by waku-org/nwaku#2200
Assignees
Labels
bug Something isn't working

Comments

@alrevuelta
Copy link

When generating a keystore with js-rln (using the frontend repo) and then importing it into nwaku it fails to load.

The error that nwaku raises:

Error: unhandled exception: Trying to access value with err Result: keystore error: OS specific error: Incorrect JSON kind. Wanted '{JNull, JString}' in '.membershipContract.chainId' but got 'JInt'. [ResultDefect]

Any idea?

@weboko weboko added the bug Something isn't working label Nov 7, 2023
@weboko
Copy link
Contributor

weboko commented Nov 8, 2023

Ok, turns out Keystore generated by nwaku is not a valid JSON.
Specifically - nwaku adds trailing commas that are allowed in JSON files.

js-rln.json
nwaku.json

Refs: MDN, the spec

@weboko
Copy link
Contributor

weboko commented Nov 8, 2023

Should be resolved by waku-org/nwaku#2200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants