Skip to content
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

NondetElementsOverTwo + NondetElementsOverTen( poseidon builtin related hints) #493

Merged
merged 8 commits into from
Jun 28, 2024

Conversation

TAdev0
Copy link
Member

@TAdev0 TAdev0 commented Jun 26, 2024

i put them in Others, no better place

Closes #491
Closes #492

ok so , hintcodes are a bit different than the python hint we see in Cairo files.
See the compiled json files which shows the real hintcode we need to detect.

Current implementation works, our VM holds all assertions regarding outputs in the Cairo files test that does various types of Poseidon hash that involve the hint.

Integration tests dont work yet, the memory trace differs a bit at the end, need to fix this in another PR

@TAdev0 TAdev0 self-assigned this Jun 26, 2024
Copy link
Contributor

@Sh0g0-1758 Sh0g0-1758 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly look good with a few comments.

pkg/hintrunner/zero/zerohint_others.go Show resolved Hide resolved
pkg/hintrunner/zero/zerohint_others_test.go Show resolved Hide resolved
pkg/hintrunner/zero/zerohint_others_test.go Show resolved Hide resolved
Copy link
Contributor

@Sh0g0-1758 Sh0g0-1758 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Sh0g0-1758 Sh0g0-1758 merged commit 45da4d0 into NethermindEth:main Jun 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NondetElementsOverTwo hint (poseidon builtin hint) NondetElementsOverTen hint (poseidon builtin hint)
2 participants