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

Compatibility problem between latest ark-linear-sumcheck and ark-serialize #63

Open
drobissout opened this issue Jan 4, 2023 · 1 comment

Comments

@drobissout
Copy link

Hello,

First of all thank you for this great crate, it's really helping me a lot.

I had a remark concerning the latest version of the crate available on github. When I try to use it and build my project, I have some errors connected to the crate ark-serialize.
The content of my Cargo.tolm is the following:

[package]
name = "test_sumcheck"
version = "0.1.0"
edition = "2021"

[dependencies]
ark-linear-sumcheck = { version = "^0.3.0" }

[patch.crates-io]
ark-linear-sumcheck = { git = "https://github.com/arkworks-rs/sumcheck" }

And when I run cargo build I get several errors of the form:

error[E0412]: cannot find type `SerializationError` in this scope
  --> /home/XXXXX/.cargo/git/checkouts/sumcheck-2b3187b65cdc1384/91bde9a/src/ml_sumcheck/data_structures.rs:47:30
   |
47 | #[derive(CanonicalSerialize, CanonicalDeserialize, Clone)]
   |                              ^^^^^^^^^^^^^^^^^^^^ not found in this scope
   |
   = note: this error originates in the derive macro `CanonicalDeserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this enum
   |
3  | use ark_serialize::SerializationError;
   |

Some errors have detailed explanations: E0405, E0412.
For more information about an error, try `rustc --explain E0405`.
error: could not compile `ark-linear-sumcheck` due to 12 previous errors

However, this problem does not arise when using the latest release of the crate, i.e. by commenting the line of [patch.crates-io].

I wanted to know if it was a setup error on my part or a problem linked with updates in the ark crates?
For now I will keep using the previous full release as it is working great.

Thank you for your time!

@mmagician
Copy link
Member

Yes, it's possible that the master branch of this repo hasn't caught up with changes in other arkworks repositories it depends on.

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