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

Bincode Deserialization Error #766

Closed
orkunkilic opened this issue Aug 8, 2023 · 3 comments
Closed

Bincode Deserialization Error #766

orkunkilic opened this issue Aug 8, 2023 · 3 comments

Comments

@orkunkilic
Copy link

orkunkilic commented Aug 8, 2023

I am facing an error while my prover is trying to deserialize the bincode that it retrieved from Bonsai API.

I also get the bincode manually using Swagger UI and tried to deserialize it into Receipt in other program but still got the error. Creating SNARK on Swagger is working fine, so I couldn't find where the error is. I guess Receipt struct in v0.16.1 is different than the Receipt struct in Bonsai but I am not sure.

thread 'main' panicked at 'called "Result::unwrap()" on an "Err" value: Io(Kind(UnexpectedEof))', host/src/main.rs:85:56

Is this a known bug?

@mothran
Copy link
Contributor

mothran commented Aug 8, 2023

Interesting, bonsai uses 0.16.1 specifically this branch: https://github.com/risc0/risc0/commits/release-0.16 at commit: 0d02111

Could you post your Cargo.toml or at least the risc0-zkvm import line to double check the version your deserializing against.

@capossele
Copy link
Contributor

What concrete struct are you using for the deserialisation?
I think 0.16.1 uses SessionReceipt

pub struct SessionReceipt {

@flaub
Copy link
Member

flaub commented Aug 15, 2023

If you're still having this issue, please re-open, closing for now.

@flaub flaub closed this as completed Aug 15, 2023
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

4 participants