-
Notifications
You must be signed in to change notification settings - Fork 103
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
Error on negative witness inputs #6
Comments
const u = bi.shr(i*32);
const v = u.and(0xFFFFFFFFn).toJSNumber(); However, I then get the following error:
Changing it to the following seems to work: const u = bi.shr(i*32);
const v = Number(u.and(0xFFFFFFFFn)); But then I get:
But, if I display the list of transfers, by adding: console.log(transfers);
console.log(actionData); I get:
Am using Node v12.4.0 It seems NodeJS can't transfer Strings or Integers to web workers via postMessage, only ArrayBuffers and MessagePorts. I solved this in NodeJS by making sure that in I use |
@HarryR where did you put the |
@udibr - that's a different Harold, it seems. I am not familiar with this project. Good luck w/ your proofs though - it's good to be certain. Take care. |
Using
snarkjs
to prove a circuit I set -1 as an input and generated awitness.json
usingsnarkjs calculatewitness
. I then tried to use websnark'sbuildwitness.json
on this input.This led to the following error:
Apologies if having negative inputs in a
witness.json
is invalid for other reasons and should not be supported.The text was updated successfully, but these errors were encountered: