Skip to content

Commit

Permalink
Merge pull request #368 from ConsenSys/develop
Browse files Browse the repository at this point in the history
v0.10.0 placeholder
  • Loading branch information
gbotrel authored Mar 29, 2023
2 parents 8f7ca09 + a57dcc3 commit f93a56c
Show file tree
Hide file tree
Showing 204 changed files with 124,914 additions and 1,823 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on: pull_request
env:
env:
GOPROXY: "https://proxy.golang.org"

name: pull_request
Expand All @@ -10,7 +10,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.19.x
go-version: 1.20.x
- name: checkout code
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -39,11 +39,11 @@ jobs:
git update-index --assume-unchanged go.mod
git update-index --assume-unchanged go.sum
if [[ -n $(git status --porcelain) ]]; then echo "git repo is dirty after runing go generate -- please don't modify generated files"; echo $(git diff);echo $(git status --porcelain); exit 1; fi
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
go-version: [1.19.x, 1.20.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
needs:
Expand Down Expand Up @@ -72,12 +72,12 @@ jobs:
go test -p=1 -v -timeout=30m ./...
go test -p=1 -tags=purego -v -timeout=30m ./...
- name: Test (32 bits & race)
if: (matrix.os == 'ubuntu-latest') && (matrix.go-version == '1.18.x')
if: (matrix.os == 'ubuntu-latest') && (matrix.go-version == '1.19.x')
run: |
go test -p=1 -v -timeout=30m -short -race ./ecc/bn254/...
go test -p=1 -v -timeout=30m -short -tags=noadx ./ecc/bn254/...
GOARCH=386 go test -p=1 -timeout=30m -short -v ./ecc/bn254/...
slack-workflow-status-failed:
if: failure()
name: post workflow status to slack
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

### Go version

`gnark-crypto` is tested with the last 2 major releases of Go (1.17 and 1.18).
`gnark-crypto` is tested with the last 2 major releases of Go (currently 1.19 and 1.20).

### Install `gnark-crypto`

Expand Down
10 changes: 8 additions & 2 deletions ecc/bls12-377/bls12-377.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ import (
// ID bls377 ID
const ID = ecc.BLS12_377

// bCurveCoeff b coeff of the curve Y²=X³+b
// aCurveCoeff is the a coefficients of the curve Y²=X³+ax+b
var aCurveCoeff fp.Element
var bCurveCoeff fp.Element

// twist
Expand Down Expand Up @@ -97,7 +98,7 @@ type E6 = fptower.E6
type E12 = fptower.E12

func init() {

aCurveCoeff.SetUint64(0)
bCurveCoeff.SetUint64(1)
// D-twist
twist.A1.SetUint64(1)
Expand Down Expand Up @@ -148,3 +149,8 @@ func Generators() (g1Jac G1Jac, g2Jac G2Jac, g1Aff G1Affine, g2Aff G2Affine) {
g2Jac = g2Gen
return
}

// CurveCoefficients returns the a, b coefficients of the curve equation.
func CurveCoefficients() (a, b fp.Element) {
return aCurveCoeff, bCurveCoeff
}
4 changes: 1 addition & 3 deletions ecc/bls12-377/ecdsa/ecdsa.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions ecc/bls12-377/fp/element.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions ecc/bls12-377/fr/element.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 31 additions & 12 deletions ecc/bls12-377/fr/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f93a56c

Please sign in to comment.