-
Notifications
You must be signed in to change notification settings - Fork 361
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
any method to export/save artifacts/keypairs in zokrates-js? #1305
Comments
You only compile and run the setup once. It is up to you to decide how to deal with the artifacts, as this usually might differ depending on the environment, etc. Have a look at this nextjs demo as an example. For backend applications, you could store with |
hey @dark64 @alvaro-alonso, I am not able to write/export the artifacts and keypair into a file as it's really huge. |
@sourav-bz this seems to be more of a JS problem that of ZoKrates itself. For questions rather than bug reports, it is more appropriate the gitter channel rather than tickets. As dark64 said, the setup is thought to be run once and prove/verify multiple times, so I would suggest you do this setup with the CLI. Moreover, the setup should be taken place in a very safe environment as if not performed correctly this can allow an attacker to generate false proofs. So except for experimental/teaching purpose this step should not be happening in a browser or in a server. |
@alvaro-alonso thank you so much these contexts, it really helped me. |
Is any method to export/save artifacts/keypairs efficiently in zokrates-js?
so that we do not need to run the setup every time ?
The text was updated successfully, but these errors were encountered: