Skip to content

cannot use Komodo in production

seen from

there is a bug with the crates.io crate for Komodo...

error[E0624]: associated function `open` is private
   --> ~/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/komodo-1.0.1/src/kzg.rs:111:37
    |
111 |           match kzg10::KZG10::<E, P>::open(
    |                                       ^^^^ private associated function
    |
   ::: ~/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/ark-poly-commit-0.4.0/src/kzg10/mod.rs:307:5
    |
307 | /     pub(crate) fn open<'a>(
308 | |         powers: &Powers<E>,
309 | |         p: &P,
310 | |         point: P::Point,
311 | |         rand: &Randomness<E::ScalarField, P>,
312 | |     ) -> Result<Proof<E>, Error> {
    | |________________________________- private associated function defined here

For more information about this error, try `rustc --explain E0624`.
error: could not compile `komodo` (lib) due to 1 previous error

repro

  • (works) Komodo from crates.io
cargo new /tmp/repro
cargo add --manifest-path /tmp/repro/Cargo.toml komodo@1.0.1
cargo check --manifest-path /tmp/repro/Cargo.toml
  • (does NOT work) Komodo from crates.io with the kzg feature
cargo new /tmp/repro
cargo add --manifest-path /tmp/repro/Cargo.toml komodo@1.0.1 --features kzg
cargo check --manifest-path /tmp/repro/Cargo.toml
  • (works) Komodo from Git
cargo new /tmp/repro
cargo add --manifest-path /tmp/repro/Cargo.toml komodo --git https://gitlab.isae-supaero.fr/dragoon/komodo --tag 1.0.1
cargo check --manifest-path /tmp/repro/Cargo.toml
  • (works) Komodo from Git, with the kzg feature
cargo new /tmp/repro
cargo add --manifest-path /tmp/repro/Cargo.toml komodo --git https://gitlab.isae-supaero.fr/dragoon/komodo --tag 1.0.1 --features kzg
cargo check --manifest-path /tmp/repro/Cargo.toml
Edited by STEVAN Antoine