iamzhanghaohui / gnarkTest

some tests of gnark
0 stars 0 forks source link

ERR error="unsatisfied constraint" backend=groth16 curve=BN254 id=0 nbConstraints=3 #1

Open nihaoqingtuan opened 1 year ago

iamzhanghaohui commented 1 year ago

Hi, I haven't perfected this code yet. I have the same running results as you. I didn't think clearly about this code at that time, as shown in the todo I mentioned on line 27. Because I am busy with other things later, I have no time to improve the code right now.

nihaoqingtuan commented 1 year ago

10:2 import "github.com/consensys/gnark/internal/backend/bn254/cs"

iamzhanghaohui commented 1 year ago

Maybe it's because you didn't compile the file under gopath My project uses go module for package management You configure the go module and proxy may solve the problem

nihaoqingtuan commented 1 year ago

i put the file under gopath/src/ ,but the error is still there

iamzhanghaohui commented 1 year ago

try execute these commands in the project root directory:

  1. go env -w GO111MODULE=on
  2. go env -w GOPROXY="https://goproxy.cn"
  3. go mod tidy
nihaoqingtuan commented 1 year ago

thank you.