We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
while user generated entropy is a nice option, using the platform's source of secure entropy would be nice for non-interactive usage
The text was updated successfully, but these errors were encountered:
Looks like snarkjs already uses crypto.randomBytes in addition to user-provided entropy:
crypto.randomBytes
https://github.com/iden3/snarkjs/blob/master/src/zkey_contribute.js#L45
https://github.com/iden3/snarkjs/blob/master/src/misc.js#L123
Non-interactive usage can be achieved using a shell pipe:
const cmd = `node ./node_modules/snarkjs/build/cli.cjs zkey contribute ${o} ${n}` const out = shelljs.exec(`echo ${currentEntropy} | ${cmd}`, { silent: true })
https://github.com/appliedzkp/multisetups/blob/master/ts/contribute.ts#L116-L117
Hope this helps!
Sorry, something went wrong.
Going to close this because (as stated above) it should already be supported. Please re-open if it isn't true.
No branches or pull requests
while user generated entropy is a nice option, using the platform's source of secure entropy would be nice for non-interactive usage
The text was updated successfully, but these errors were encountered: