Consensys / goff

goff (go finite field) is a unix-like tool that generates fast field arithmetic in Go.
https://hackmd.io/@zkteam/goff
Apache License 2.0
76 stars 12 forks source link

goff should offer APIs alongside the CLI tool #1

Closed gbotrel closed 4 years ago

gbotrel commented 4 years ago

While having a CLI tool is useful in some workflow, it doesn't leverage versioning properly.

Having an API like: goff.Generate(fieldParameters, path)

would enable other projects to specify which version of goff is used in go.mod file.

gbotrel commented 4 years ago

using cmd.GenerateFF now fills this purpose.