Best way to operate on an arbitrary part of an array? #1301
Unanswered
Scratch-net
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Basically I need .FromBinary() where digits can be specified as frontend.Variable slice indices |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there!
So I've got a circuit which does block cipher decryption and the result is a fixed length array of decrypted data (bytes, bits, does not matter)
Next I need to process a part of that data (say, hash it) to prove that "a hash of some data indeed exists in this encrypted data from indexes A to B"
I'm ok with the "data" to be exactly 31 bytes every time to fit into BN254 element, I can use bitmasks for excluding redundant part. But can't get my head around the way to "take" these bytes from an arbitrary part of a block, say "starting from position 10".
Is there any way around it?
Beta Was this translation helpful? Give feedback.
All reactions