Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Jan 3, 2022
2 parents d3277c3 + 99e6d31 commit f5ecf52
Show file tree
Hide file tree
Showing 229 changed files with 46,106 additions and 4,533 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1
jobs:
build:
docker:
- image: cimg/go:1.17.1
- image: cimg/go:1.17.3
steps:
- checkout
- run: mkdir -p /tmp/test-results
Expand All @@ -11,8 +11,8 @@ jobs:
- go-mod-v1-{{ checksum "go.sum" }}
- run: if [[ -n $(gofmt -l .) ]]; then echo "Please run gofmt"; exit 1; fi
- run: go vet -v ./...
- run: go get golang.org/x/tools/cmd/goimports
- run: go get github.com/klauspost/asmfmt/cmd/asmfmt
- run: go install golang.org/x/tools/cmd/goimports@latest
- run: go install github.com/klauspost/asmfmt/cmd/asmfmt@latest
- run: go generate ./...
- run: git update-index --assume-unchanged go.mod
- run: git update-index --assume-unchanged go.sum
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: gosec
run: |
go install github.com/securego/gosec/cmd/gosec@latest
gosec -exclude G204 ./...
gosec -exclude="G204,G304" ./...
- name: generated files should not be modified
run: |
go generate ./...
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.dll
*.so
*.dylib
*.txt

# Test binary, build with `go test -c`
*.test
Expand All @@ -29,8 +30,12 @@ tasks.txt
internal/tests/integration/
field/internal/dev.go
field/internal/dev/**
field/generator/addchain/**

.vscode

# compiled sage -> python code
*.sage.py

.DS_Store
.idea
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
<a name="v0.6.0"></a>
## [v0.6.0] - 2021-12-22


### Feat

- **plookup:** added plookup lookup proof
- **field:** generate optimized addition chains for Sqrt & Legendre exp functions
- **field:** added field.SetInt64, support for intX and uintX [#109](https://github.com/ConsenSys/gnark-crypto/issues/109)
- **field:** added UnmarshalJSON and MarshalJSON on fields
- **field:** added field.Text(base) to return field element string in a given base, like big.Int
- **field:** field.SetString now supports 0b 0o 0x prefixes (base 2, 8 and 16)
- **kzg:** test tampered proofs whith quotient set to zero
- **bls24:** Fp-Fp2-Fp4-Fp12-Fp24 tower

### Fix
- fixes [#104](https://github.com/ConsenSys/gnark-crypto/issues/104) code generation for saturated modulus like secp256k1 incorrect. added secp256k1 test

### Perf
- field inverse is ~30-70% faster (implements Pornin's optimizations)
- **bls12-381:** faster Miller loop (sparse-sparse mul)
- **bls12-381:** faster final exp (faster expt)
- **bn254:** better short addition chain for Expt()
- **bn254:** addchain with max squares (weighting mul x2.6 cyclosq)


### Pull Requests
- Merge pull request [#111](https://github.com/ConsenSys/gnark-crypto/issues/111) from ConsenSys/field-intX-support
- Merge pull request [#114](https://github.com/ConsenSys/gnark-crypto/issues/114) from ConsenSys/fix-dynamic-link
- Merge pull request [#108](https://github.com/ConsenSys/gnark-crypto/issues/108) from ConsenSys/perf/bls12381-pairing
- Merge pull request [#106](https://github.com/ConsenSys/gnark-crypto/issues/106) from ConsenSys/improvement/field-inv-pornin20
- Merge pull request [#105](https://github.com/ConsenSys/gnark-crypto/issues/105) from ConsenSys/field-from-json
- Merge pull request [#83](https://github.com/ConsenSys/gnark-crypto/issues/83) from ConsenSys/experiment/BLS24
- Merge pull request [#102](https://github.com/ConsenSys/gnark-crypto/issues/102) from ConsenSys/feat/plookup
- Merge pull request [#97](https://github.com/ConsenSys/gnark-crypto/issues/97) from ConsenSys/feat-addchain
- Merge pull request [#99](https://github.com/ConsenSys/gnark-crypto/issues/99) from ConsenSys/feat-addchain-expt




<a name="v0.5.3"></a>
## [v0.5.3] - 2021-10-30

Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [zkteam@consensys.net].
reported by contacting the project team at [gnark@consensys.net].
All complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
2 changes: 1 addition & 1 deletion ecc/bls12-377/fp/doc.go

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

0 comments on commit f5ecf52

Please sign in to comment.