You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that all the test cases related to these functions are excluded from the noir integration tests. We don't run this code in the sha256 test case as this uses the native implementation from bberg rather than in noir.
Installation method
Binary
Nargo version
nargo 0.5.0 (git version hash: 5cf7580, is dirty: false)
Additional context
No response
Submission Checklist
Once I hit submit, I will assign this issue to the Project Board with the appropriate tags.
The text was updated successfully, but these errors were encountered:
From the look of the error message this isn't an issue in the actual implementation but in Noir itself. We're trying to write past the end of the array but the surrounding if statement should prevent this.
Aim
I'm trying to compile code which uses the sha256 and sha512 implementations we have in the standard library as part of #1258 .
The functions are defined here:
https://github.com/noir-lang/noir/blob/master/noir_stdlib/src/sha256.nr
https://github.com/noir-lang/noir/blob/master/noir_stdlib/src/sha512.nr
Expected behavior
These functions should compile correctly and calculate the sha256 and sha512 hashes respectively.
Bug
Compilation of these functions fails with the error
To reproduce
sha2_byte
test caseNote that all the test cases related to these functions are excluded from the noir integration tests. We don't run this code in the
sha256
test case as this uses the native implementation from bberg rather than in noir.Installation method
Binary
Nargo version
nargo 0.5.0 (git version hash: 5cf7580, is dirty: false)
Additional context
No response
Submission Checklist
The text was updated successfully, but these errors were encountered: