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

Failed to generate code #6

Closed
alexeykiselev opened this issue Mar 2, 2020 · 1 comment
Closed

Failed to generate code #6

alexeykiselev opened this issue Mar 2, 2020 · 1 comment

Comments

@alexeykiselev
Copy link

Hello,
I've failed to re-generate generated code for the curves arithmetics.

Steps to reproduce

  1. goff updated to current master and built with make.
  2. gnark updated to current master.
  3. In gnark folder cd ecc/bls381
  4. and execute go generate
  5. command fails with following output:
running goff version 0.1.0-alpha

generating fp/element.go
generating fp/arith.go
generating fp/element_test.go

running goff version 0.1.0-alpha

generating fr/element.go
generating fr/arith.go
generating fr/element_test.go
generating e2.go
generating e2_test.go
generating e6.go
generating e6_test.go
generating e12.go
error: template: :593:7: executing "" at <(eq .Fp6NonResidue "0,1") and (eq .Fp "258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177")>: can't give argument to non-function eq .Fp6NonResidue "0,1"
exit status 255
bls381.go:14: running "go": exit status 1
@gbotrel gbotrel closed this as completed in c46beb5 Mar 2, 2020
@gbotrel
Copy link
Collaborator

gbotrel commented Mar 2, 2020

Indeed, we noticed that with Go 1.14 update --> it was fixed in develop and now merged into master.

Note also that in this new merge, goff is used as a go.mod dependency, not a binary, to ensure proper versioning.

ThomasPiellard added a commit to ThomasPiellard/gnark that referenced this issue Jul 9, 2024
shramee added a commit to shramee/gnark that referenced this issue Sep 4, 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

2 participants