Skip to content

How to check if a frontend.Variable is contained in a list, if the list is a secret witness. #1070

Answered by ivokub
drakstik asked this question in Q&A
Discussion options

You must be logged in to vote

You could use isDifferent = api.Sub(1, api.IsZero(api.Sub(circuit.Permissible_Values[i], Value))) and then multiply the results and assert that the product is 1.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@drakstik
Comment options

Answer selected by drakstik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants