ef-grant's People
Forkers
22388oef-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](https://private-user-images.githubusercontent.com/33189338/279339694-7cd48e40-b381-43a2-b556-5fbb6686b88f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNDQzMTAsIm5iZiI6MTcyMTM0NDAxMCwicGF0aCI6Ii8zMzE4OTMzOC8yNzkzMzk2OTQtN2NkNDhlNDAtYjM4MS00M2EyLWI1NTYtNWZiYjY2ODZiODhmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDIzMDY1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY1MTA2NTU5YjlhYzc1ZWQ3NTllYzZiN2ZlZmU1ZmM2ZTlkNzc1ZDg5ODE1NDIwZTkzNjdiZjljMjg0MzAwZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZJ5ErHm3TOsDMWx0GzNPFhx8B_3nuIEUiFpKtIaIWvc)
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 ~
typo mul->add
hi, Thank you for great material for zk engineers ;>
I found one typo here.
https://github.com/EDGDrummond/EF-grant/blob/main/halo2/tests/tutorial.rs#L134
error: failed to select a version for the requirement `funty = "~1.2"`
Hi , can you help me fix the problem. It is the version problem of "https://github.com/privacy-scaling-explorations/halo2.git"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.