Skip to content

Array Indexing - How to safely access (set/get) a secret 2D array using a forloop? #1278

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

You must be logged in to vote

It does make sense! In your case it is simpler because you already define the size of the picture in the circuit definition Pixels [N][N]FrontendPixel where I assume N is a constant.

I haven't run your example, but for now it looks good to me. If there is a compile/solver error, then it would help if you have a full running example which I could try out.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@drakstik
Comment options

@ivokub
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