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

keccak example fails to prove #118

Open
drcapybara opened this issue Mar 5, 2024 · 3 comments
Open

keccak example fails to prove #118

drcapybara opened this issue Mar 5, 2024 · 3 comments

Comments

@drcapybara
Copy link

drcapybara commented Mar 5, 2024

the example runs successfully:

Executed 577470 instructions in 1.737721891s

but when running cargo nexus prove on the provided keccak example, we receive the following:

   Compiling nexus-project v0.1.0
    Finished release [optimized] target(s) in 0.09s
Executing program...
acaf3289d7b61cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f
Error: invalid instruction 48 at 14628174101512105900

Caused by:
    invalid instruction 48 at 14628174101512105900
@danielmarinq
Copy link
Contributor

Interesting, let us investigate this issue. @govereau can you take a look?

@govereau
Copy link
Collaborator

govereau commented Mar 6, 2024

Thanks for the report. Unfortunately, I was not able able to reproduce this on my configuration. I noticed that you have a different number of instructions than I. I show 40,120 instructions for the release version and 583,895 instructions for the debug version. I am not sure why you have 577,470 instructions: perhaps we have different rust versions? Have you tried running the release version of the example? I wonder if you would see the same result.

If you have time, can you send the version of rust and version of the nexus runtime you are using? Thanks again.

@drcapybara
Copy link
Author

drcapybara commented Mar 6, 2024

@govereau

rustc version:
rustc 1.74.0 (79e9716c9 2023-11-13)

nexus version:
"https://github.com/nexus-xyz/nexus-zkvm.git", version = "0.1.0"

How does one prove in release mode? I was using the commands from the readme at the front of the repo:

cargo nexus prove

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

No branches or pull requests

3 participants