Skip to content

Commit f5ecf52

Browse files
committed
Merge branch 'develop'
2 parents d3277c3 + 99e6d31 commit f5ecf52

File tree

229 files changed

+46106
-4533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+46106
-4533
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2.1
22
jobs:
33
build:
44
docker:
5-
- image: cimg/go:1.17.1
5+
- image: cimg/go:1.17.3
66
steps:
77
- checkout
88
- run: mkdir -p /tmp/test-results
@@ -11,8 +11,8 @@ jobs:
1111
- go-mod-v1-{{ checksum "go.sum" }}
1212
- run: if [[ -n $(gofmt -l .) ]]; then echo "Please run gofmt"; exit 1; fi
1313
- run: go vet -v ./...
14-
- run: go get golang.org/x/tools/cmd/goimports
15-
- run: go get github.com/klauspost/asmfmt/cmd/asmfmt
14+
- run: go install golang.org/x/tools/cmd/goimports@latest
15+
- run: go install github.com/klauspost/asmfmt/cmd/asmfmt@latest
1616
- run: go generate ./...
1717
- run: git update-index --assume-unchanged go.mod
1818
- run: git update-index --assume-unchanged go.sum

.github/workflows/develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: gosec
4444
run: |
4545
go install github.com/securego/gosec/cmd/gosec@latest
46-
gosec -exclude G204 ./...
46+
gosec -exclude="G204,G304" ./...
4747
- name: generated files should not be modified
4848
run: |
4949
go generate ./...

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.dll
55
*.so
66
*.dylib
7+
*.txt
78

89
# Test binary, build with `go test -c`
910
*.test
@@ -29,8 +30,12 @@ tasks.txt
2930
internal/tests/integration/
3031
field/internal/dev.go
3132
field/internal/dev/**
33+
field/generator/addchain/**
3234

3335
.vscode
3436

3537
# compiled sage -> python code
3638
*.sage.py
39+
40+
.DS_Store
41+
.idea

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
<a name="v0.6.0"></a>
2+
## [v0.6.0] - 2021-12-22
3+
4+
5+
### Feat
6+
7+
- **plookup:** added plookup lookup proof
8+
- **field:** generate optimized addition chains for Sqrt & Legendre exp functions
9+
- **field:** added field.SetInt64, support for intX and uintX [#109](https://github.com/ConsenSys/gnark-crypto/issues/109)
10+
- **field:** added UnmarshalJSON and MarshalJSON on fields
11+
- **field:** added field.Text(base) to return field element string in a given base, like big.Int
12+
- **field:** field.SetString now supports 0b 0o 0x prefixes (base 2, 8 and 16)
13+
- **kzg:** test tampered proofs whith quotient set to zero
14+
- **bls24:** Fp-Fp2-Fp4-Fp12-Fp24 tower
15+
16+
### Fix
17+
- fixes [#104](https://github.com/ConsenSys/gnark-crypto/issues/104) code generation for saturated modulus like secp256k1 incorrect. added secp256k1 test
18+
19+
### Perf
20+
- field inverse is ~30-70% faster (implements Pornin's optimizations)
21+
- **bls12-381:** faster Miller loop (sparse-sparse mul)
22+
- **bls12-381:** faster final exp (faster expt)
23+
- **bn254:** better short addition chain for Expt()
24+
- **bn254:** addchain with max squares (weighting mul x2.6 cyclosq)
25+
26+
27+
### Pull Requests
28+
- Merge pull request [#111](https://github.com/ConsenSys/gnark-crypto/issues/111) from ConsenSys/field-intX-support
29+
- Merge pull request [#114](https://github.com/ConsenSys/gnark-crypto/issues/114) from ConsenSys/fix-dynamic-link
30+
- Merge pull request [#108](https://github.com/ConsenSys/gnark-crypto/issues/108) from ConsenSys/perf/bls12381-pairing
31+
- Merge pull request [#106](https://github.com/ConsenSys/gnark-crypto/issues/106) from ConsenSys/improvement/field-inv-pornin20
32+
- Merge pull request [#105](https://github.com/ConsenSys/gnark-crypto/issues/105) from ConsenSys/field-from-json
33+
- Merge pull request [#83](https://github.com/ConsenSys/gnark-crypto/issues/83) from ConsenSys/experiment/BLS24
34+
- Merge pull request [#102](https://github.com/ConsenSys/gnark-crypto/issues/102) from ConsenSys/feat/plookup
35+
- Merge pull request [#97](https://github.com/ConsenSys/gnark-crypto/issues/97) from ConsenSys/feat-addchain
36+
- Merge pull request [#99](https://github.com/ConsenSys/gnark-crypto/issues/99) from ConsenSys/feat-addchain-expt
37+
38+
39+
40+
141
<a name="v0.5.3"></a>
242
## [v0.5.3] - 2021-10-30
343

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [zkteam@consensys.net].
58+
reported by contacting the project team at [gnark@consensys.net].
5959
All complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

ecc/bls12-377/fp/doc.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)