You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When execute this command,error message appears "Program takes 21 inputs but was passed 0 values",if I use the command "./zokrates compute-witness -a xxx", where xxx means the content in zokrates_inputs, error message appears Program takes 21 inputs but was passed 517 values. I guess that it's a matter of parameters,mybe caused by version upgrade, what can I do to fix this problem?
The text was updated successfully, but these errors were encountered:
This command works for me to supply arguments from the file to the command. zokrates compute-witness -a $(cat zokrates_inputs.txt). Now the problem reduces to having an incorrect number of arguments.
There might be an issue with the pip installation. I faced the same issue. Upon inspection of the code, I realized the code should be functional. I copied the function "write_signature_for_zokrates_cli" from zokrates_pycrypto/utils.py and pasted the function in demo.py and used that while following the readme, and it was able to generate witness.
The real problem happens because the zokrates script accepts 21 inputs (5 + 16 32-bit ints) whereas the version of the library installed with pip provides (5 + 512 1-bit ints) in the zokrates_inputs.txt file. Manually pasting the function in your python code can serve as a temporary fix.
When execute this command,error message appears "Program takes 21 inputs but was passed 0 values",if I use the command "./zokrates compute-witness -a xxx", where xxx means the content in zokrates_inputs, error message appears Program takes 21 inputs but was passed 517 values. I guess that it's a matter of parameters,mybe caused by version upgrade, what can I do to fix this problem?
The text was updated successfully, but these errors were encountered: