arkworks-rs / ripp

Argument systems for inner pairing products
https://eprint.iacr.org/2019/1177
Apache License 2.0
41 stars 15 forks source link

Not able to build from master #13

Closed nikkolasg closed 3 years ago

nikkolasg commented 3 years ago

Hi, I just did git clone https://... and then cargo build --release (with rustup stable) and here's what I have:

ripp:% cargo build --release                                                                                                                                                                         <master>
   Compiling ark-sipp v0.1.0 (/home/nalos/prog/rust/ripp/sipp)
   Compiling ark-ip-proofs v0.1.0 (/home/nalos/prog/rust/ripp/ip_proofs)
error[E0432]: unresolved import `ark_poly::polynomial::DensePolynomial`
 --> ip_proofs/src/applications/poly_commit/mod.rs:3:5
  |
3 | use ark_poly::polynomial::DensePolynomial as UnivariatePolynomial;
  |     ^^^^^^^^^^^^^^^^^^^^^^---------------^^^^^^^^^^^^^^^^^^^^^^^^
  |     |                     |
  |     |                     help: a similar name exists in the module: `Polynomial`
  |     no `DensePolynomial` in `polynomial`

error[E0432]: unresolved import `ark_poly::polynomial::DensePolynomial`
 --> ip_proofs/src/applications/poly_commit/transparent.rs:3:5
  |
3 | use ark_poly::polynomial::DensePolynomial as UnivariatePolynomial;
  |     ^^^^^^^^^^^^^^^^^^^^^^---------------^^^^^^^^^^^^^^^^^^^^^^^^
  |     |                     |
  |     |                     help: a similar name exists in the module: `Polynomial`
  |     no `DensePolynomial` in `polynomial`

error[E0432]: unresolved import `ark_poly::polynomial::DensePolynomial`
 --> ip_proofs/src/tipa/mod.rs:3:5
  |
3 | use ark_poly::polynomial::DensePolynomial;
  |     ^^^^^^^^^^^^^^^^^^^^^^---------------
  |     |                     |
  |     |                     help: a similar name exists in the module: `Polynomial`
  |     no `DensePolynomial` in `polynomial`

error[E0392]: parameter `F` is never used
  --> ip_proofs/src/applications/poly_commit/transparent.rs:58:32
   |
58 | pub struct BivariatePolynomial<F: Field> {
   |                                ^ unused parameter
   |
   = help: consider removing `F`, referring to it in a field, or using a marker such as `PhantomData`

error[E0392]: parameter `F` is never used
   --> ip_proofs/src/applications/poly_commit/mod.rs:122:32
    |
122 | pub struct BivariatePolynomial<F: Field> {
    |                                ^ unused parameter
    |
    = help: consider removing `F`, referring to it in a field, or using a marker such as `PhantomData`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0392, E0432.
For more information about an error, try `rustc --explain E0392`.
error: could not compile `ark-ip-proofs`

To learn more, run the command again with --verbose.

Here's extract of my rustup show:

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.48.0 (7eac88abb 2020-11-16)