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

Error on building ECDSA-verify example #589

Open
grandchildrice opened this issue Feb 14, 2025 · 2 comments
Open

Error on building ECDSA-verify example #589

grandchildrice opened this issue Feb 14, 2025 · 2 comments

Comments

@grandchildrice
Copy link

Hello, I am currently working on creating a comprehensive benchmark repository for zkVM. The results will be presented at ZKProof7 Workshop.

I have tested the ECDSA Verify guest code and am facing a puzzling error.

PR: grandchildrice/zkvm-benchmarks#12 (review)

It is during the verify of the Signature, I get the error DeserializeUnexpectedEnd . Since the exact same guest code is working fine on SP1-Turbo, RISC Zero, I am wondering if this is an error due to Jolt VM behavior. Any advice on this?

    Finished `release` profile [optimized + debuginfo] target(s) in 0.25s
     Running `target/release/ecdsa`
GUEST PANIC
GUEST PANIC
GUEST PANIC
Trace length: 39795
thread 'main' panicked at ecdsa-guest/src/lib.rs:14:1:
called `Result::unwrap()` on an `Err` value: DeserializeUnexpectedEnd
stack backtrace:
   0: rust_begin_unwind
             at /rustc/7608018cbdac9e55d0d13529cf43adc33d53efcf/library/std/src/panicking.rs:665:5
   1: core::panicking::panic_fmt
             at /rustc/7608018cbdac9e55d0d13529cf43adc33d53efcf/library/core/src/panicking.rs:74:14
   2: core::result::unwrap_failed
             at /rustc/7608018cbdac9e55d0d13529cf43adc33d53efcf/library/core/src/result.rs:1695:5
   3: core::result::Result<T,E>::unwrap
             at /home/gohan/.rustup/toolchains/nightly-2024-09-30-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1103:23
   4: ecdsa_guest::prove_ecdsa_verify
             at ./ecdsa-guest/src/lib.rs:14:1
   5: ecdsa_guest::build_ecdsa_verify::{{closure}}
             at ./ecdsa-guest/src/lib.rs:14:1
   6: ecdsa::bench_ecdsa
             at ./src/bin/ecdsa.rs:24:28
   7: utils::benchmark
             at /home/gohan/workspace/zkvm-benchmarks/utils/src/lib.rs:13:40
   8: ecdsa::main
             at ./src/bin/ecdsa.rs:9:5
   9: core::ops::function::FnOnce::call_once
             at /home/gohan/.rustup/toolchains/nightly-2024-09-30-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@mw2000
Copy link
Contributor

mw2000 commented Feb 14, 2025

@grandchildrice have you tried giving the program more memory?

https://jolt.a16zcrypto.com/usage/troubleshooting.html

nice pfp btw!

@grandchildrice
Copy link
Author

Thank you! I will try it.

Your pfp is nice as well!

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

2 participants