-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Bug] Execution for Pedersen commit
instructions.
#1361
Comments
The TLDR is we are going to hold off on this until boolean arrays are supported in Aleo instructions. ProblemThe reason this fails is that So,
because they fit within the 64 bits with their respective metadata bits. The same case applies for its respective types in the For those who are wondering why we need to encode all this data, the problem is that these are supposed to be collision-resistant hash functions. If we didn't encode the type, variant, and size information, there is a risk that collision may occur when we hash SolutionOne way to remedy this issue is to allow the developer in Aleo instructions to pack their own bitarray / boolean array, and pass it (as a register) to the |
@howardwu Is the design spec for |
We haven't drafted anything yet. Currently, we've been experimenting with using routing networks to facilitate the common memory-bound array operations. |
@howardwu Thanks for sharing. I've another question to confirm: Is the circuit |
Also a good question, we're planning to overhaul the Currently, yes the |
@howardwu Could you provide a more detailed explanation of the routing network? I am very interested in this topic but have not been able to find any relevant information. Thank you. |
🐛 Bug Report
The two Pedersen variants of the
commit
instruction take up-to 64 and 128 bit inputs respectively.However, using
Value::to_bits_le
(it's because ofPlaintext::to_bits_le
) introduces additional bits to appropriately serialize the variants, resulting in unexpected failures.Test
This test is to be run with the fix in #1360.
Output
The text was updated successfully, but these errors were encountered: