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

default plonky2 version is incompatible #7

Open
ddl-hust opened this issue Feb 26, 2024 · 0 comments
Open

default plonky2 version is incompatible #7

ddl-hust opened this issue Feb 26, 2024 · 0 comments

Comments

@ddl-hust
Copy link

debug log

error[E0107]: trait takes 2 generic arguments but 1 generic argument was supplied
   --> src/nonnative/gadgets/biguint.rs:442:52
    |
442 | impl<F: RichField + Extendable<D>, const D: usize> SimpleGenerator<F>
    |                                                    ^^^^^^^^^^^^^^^ - supplied 1 generic argument
    |                                                    |
    |                                                    expected 2 generic arguments
    |
note: trait defined here, with 2 generic parameters: `F`, `D`
   --> /Users/dengdiliang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/plonky2-0.1.4/src/iop/generator.rs:197:11
    |
197 | pub trait SimpleGenerator<F: RichField + Extendable<D>, const D: usize>:
    |           ^^^^^^^^^^^^^^^ -                             --------------
help: add missing generic argument
    |
442 | impl<F: RichField + Extendable<D>, const D: usize> SimpleGenerator<F, D>
    |                                                                     +++

error[E0107]: trait takes 2 generic arguments but 1 generic argument was supplied
   --> src/u32/gadgets/arithmetic_u32.rs:247:52
    |
247 | impl<F: RichField + Extendable<D>, const D: usize> SimpleGenerator<F>
    |                                                    ^^^^^^^^^^^^^^^ - supplied 1 generic argument
    |                                                    |
    |                                                    expected 2 generic arguments
    |
note: trait defined here, with 2 generic parameters: `F`, `D`
   --> /Users/dengdiliang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/plonky2-0.1.4/src/iop/generator.rs:197:11
    |
197 | pub trait SimpleGenerator<F: RichField + Extendable<D>, const D: usize>:
    |           ^^^^^^^^^^^^^^^ -                             --------------
help: add missing generic argument
    |
247 | impl<F: RichField + Extendable<D>, const D: usize> SimpleGenerator<F, D>

Solution

follow this https://crates.io/crates/plonky2/versions, right now plonky2 default version is 0.1.4 is incompatible with plonky2-crypto switch to plonky2 = "=0.1.3"

@ddl-hust ddl-hust changed the title Running the test case found that default plonky2 version is incompatible default plonky2 version is incompatible Feb 26, 2024
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

1 participant