Code Monkey home page Code Monkey logo

ef-grant's People

Contributors

edgdrummond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

22388o

ef-grant's Issues

compile Error

When cargo test -- --nocapture ecdsa_example :

error[E0741]: `ExecutionState` must implement `ConstParamTy` to be used as the type of a const generic parameter
  --> /Users/soda/.cargo/git/checkouts/zkevm-circuits-bd9aa9c68dc83a80/d5cc6be/zkevm-circuits/src/evm_circuit/execution/dummy.rs:15:84
   |
15 | pub(crate) struct DummyGadget<F, const N_POP: usize, const N_PUSH: usize, const S: ExecutionState> {
   |                                                                                    ^^^^^^^^^^^^^^
   |
help: add `#[derive(ConstParamTy)]` to the struct
  --> /Users/soda/.cargo/git/checkouts/zkevm-circuits-bd9aa9c68dc83a80/d5cc6be/zkevm-circuits/src/evm_circuit/step.rs:23:1
   |
23 + #[derive(ConstParamTy)]
24 | pub enum ExecutionState {
   |

error[E0741]: `ExecutionState` must implement `ConstParamTy` to be used as the type of a const generic parameter
  --> /Users/soda/.cargo/git/checkouts/zkevm-circuits-bd9aa9c68dc83a80/d5cc6be/zkevm-circuits/src/evm_circuit/execution/dummy.rs:21:66
   |
21 | impl<F: Field, const N_POP: usize, const N_PUSH: usize, const S: ExecutionState> ExecutionGadget<F>
   |                                                                  ^^^^^^^^^^^^^^
   |
help: add `#[derive(ConstParamTy)]` to the struct
  --> /Users/soda/.cargo/git/checkouts/zkevm-circuits-bd9aa9c68dc83a80/d5cc6be/zkevm-circuits/src/evm_circuit/step.rs:23:1
   |
23 + #[derive(ConstParamTy)]
24 | pub enum ExecutionState {
   |

error[E0741]: `GasCost` must implement `ConstParamTy` to be used as the type of a const generic parameter
   --> /Users/soda/.cargo/git/checkouts/zkevm-circuits-bd9aa9c68dc83a80/d5cc6be/zkevm-circuits/src/evm_circuit/util/memory_gadget.rs:339:60
    |
339 | pub(crate) struct MemoryCopierGasGadget<F, const GAS_COPY: GasCost> {
    |                                                            ^^^^^^^

error[E0741]: `GasCost` must implement `ConstParamTy` to be used as the type of a const generic parameter
   --> /Users/soda/.cargo/git/checkouts/zkevm-circuits-bd9aa9c68dc83a80/d5cc6be/zkevm-circuits/src/evm_circuit/util/memory_gadget.rs:345:32
    |
345 | impl<F: Field, const GAS_COPY: GasCost> MemoryCopierGasGadget<F, GAS_COPY> {
    |                                ^^^^^^^

For more information about this error, try `rustc --explain E0741`.
error: could not compile `zkevm-circuits` (lib) due to 4 previous errors

cannot find derive macro `ConstParamTy` in this scope

$ cargo criterion --bench ecdsa

    Skipping git submodule `https://github.com/ethereum/tests` due to update strategy in .gitmodules
    Skipping git submodule `https://github.com/OpenZeppelin/openzeppelin-contracts` due to update strategy in .gitmodules
   Compiling zkevm-circuits v0.1.0 (https://github.com/EDGDrummond/zkevm-circuits.git#d9fb3b82)
error: cannot find derive macro `ConstParamTy` in this scope
  --> /Users/soda/.cargo/git/checkouts/zkevm-circuits-e28bdf2295242332/d9fb3b8/zkevm-circuits/src/evm_circuit/step.rs:37:61
   |
37 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, EnumIter, ConstParamTy)]
   |                                                             ^^^^^^^^^^^^

error: could not compile `zkevm-circuits` due to previous error
Error: 'cargo bench' returned an error (exit status: 101); unable to continue.
image

About my rust version:

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

nightly-2022-11-22-x86_64-apple-darwin (overridden by '/Users/soda/halo2/EF-grant-main/rust-toolchain')
rustc 1.67.0-nightly (b7bc90fea 2022-11-21)

any help thanks ~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.