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

is it possible to use negative int in signal #35

Open
stackdump opened this issue Jul 19, 2019 · 1 comment
Open

is it possible to use negative int in signal #35

stackdump opened this issue Jul 19, 2019 · 1 comment

Comments

@stackdump
Copy link

Disclaimer: Likely there is something fundamental I just don't understand about this yet.

Use Case: I'm attempting to add 2 vectors (which may contain negative values) & assert that the result is >= 0

attempt here passes: https://gist.github.com/stackdump/9ef923d8f9f10a874cb04a6730a095b4

But If I try to make one of the input signals a negative integer - seems to hang forever while generating the proof (as I watch load climb on my cpu).

P.S. Also - is there another way I should be using arithmetic on signals?

@stackdump stackdump changed the title is it possible to using negative int in signal is it possible to use negative int in signal Jul 25, 2019
@gubsheep
Copy link

gubsheep commented Jun 18, 2020

we ran in to this as well. for anyone who runs into this issue: in your input.json, try representing the number -n as "p-n" (in quotations!), where p is field size 21888242871839275222246405745257275088548364400416034343698204186575808495617

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants