-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add Cairo Zero Hints #164
Labels
cairo zero
Exclusively targets cairo zero
enhancement
New feature or request
vm hint
Related with VM hints
Comments
This was referenced Nov 14, 2023
Closed
Closed
Open
To implement the hints in this issue you'll need to follow the next steps:
|
quasilyte
added a commit
that referenced
this issue
Feb 16, 2024
This hint uses the assert_felt_le beneath it, but it was implemented beforehand. This PR has no tests included since #204 is not solved yet. I used a couple of Cairo0 scripts to test this functionality with a set of different arguments to cover both hints that are a part of `is_nn` function. (One of them handles negatives while another is for the non-negatives.) Refs #164
quasilyte
added a commit
that referenced
this issue
Feb 16, 2024
is_nn hint uses the assert_felt_le beneath it, but it was implemented beforehand. This PR has no tests included since #204 is not solved yet. I used a couple of Cairo0 scripts to test this functionality with a set of different arguments to cover both hints that are a part of `is_nn` function. (One of them handles negatives while another is for the non-negatives.) Refs #164
quasilyte
added a commit
that referenced
this issue
Feb 20, 2024
implement several Cairo0 hint is_nn hint uses the assert_felt_le beneath it, but it was implemented beforehand. This PR has no tests included since #204 is not solved yet. I used a couple of Cairo0 scripts to test this functionality with a set of different arguments to cover both hints that are a part of `is_nn` function. (One of them handles negatives while another is for the non-negatives.) Refs #164
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cairo zero
Exclusively targets cairo zero
enhancement
New feature or request
vm hint
Related with VM hints
Cairo Zero Hints
The following is a (big!) list of hints required by Cairo Zero. They might be an overlap between Cairo Zero hints and Cairo One hints #36 .
The list was extracted from sister VM in Go by LambdaClass where they gathered all Pythonic hints.
👀 For specific instructions on how to implement these hints you can check out the readme file in the zero package
Uint256 Operations
Math Operations
SplitInt
is within the expected range.AssertLeFelt
.AssertLeFelt
.AssertLeFelt
.Usort
Other
NondetElementsOverTen
hint (poseidon builtin hint) #491NondetElementsOverTwo
hint (poseidon builtin hint) #492Elliptic Curve Operations
Signatures (ECDSA & SEC_P)
Blake Hash
Keccak
CompareBytesInWord
hint (Keccak hint) #479compareKeccakFullRateInBytes
hint (Keccak hint) #480Dictionaries
The text was updated successfully, but these errors were encountered: