Skip to content

Commit

Permalink
build: fix gosec warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Mar 25, 2022
1 parent a6369bf commit 249f3bd
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 14 deletions.
4 changes: 3 additions & 1 deletion internal/backend/bls12-377/plonk/prove.go

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

4 changes: 3 additions & 1 deletion internal/backend/bls12-377/plonk/verify.go

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

4 changes: 3 additions & 1 deletion internal/backend/bls12-381/plonk/prove.go

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

4 changes: 3 additions & 1 deletion internal/backend/bls12-381/plonk/verify.go

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

4 changes: 3 additions & 1 deletion internal/backend/bls24-315/plonk/prove.go

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

4 changes: 3 additions & 1 deletion internal/backend/bls24-315/plonk/verify.go

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

4 changes: 3 additions & 1 deletion internal/backend/bn254/plonk/prove.go

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

4 changes: 3 additions & 1 deletion internal/backend/bn254/plonk/verify.go

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

4 changes: 3 additions & 1 deletion internal/backend/bw6-633/plonk/prove.go

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

4 changes: 3 additions & 1 deletion internal/backend/bw6-633/plonk/verify.go

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

4 changes: 3 additions & 1 deletion internal/backend/bw6-761/plonk/prove.go

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

4 changes: 3 additions & 1 deletion internal/backend/bw6-761/plonk/verify.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ func Prove(spr *cs.SparseR1CS, pk *ProvingKey, fullWitness {{ toLower .CurveID }
// The first challenge is derived using the public data: the commitments to the permutation,
// the coefficients of the circuit, and the public inputs.
// derive gamma from the Comm(blinded cl), Comm(blinded cr), Comm(blinded co)
bindPublicData(&fs, "gamma", *pk.Vk, fullWitness[:spr.NbPublicVariables])
if err := bindPublicData(&fs, "gamma", *pk.Vk, fullWitness[:spr.NbPublicVariables]); err != nil {
return nil, err
}
bgamma, err := fs.ComputeChallenge("gamma")
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ func Verify(proof *Proof, vk *VerifyingKey, publicWitness {{ toLower .CurveID }}
// The first challenge is derived using the public data: the commitments to the permutation,
// the coefficients of the circuit, and the public inputs.
// derive gamma from the Comm(blinded cl), Comm(blinded cr), Comm(blinded co)
bindPublicData(&fs, "gamma", *vk, publicWitness)
if err := bindPublicData(&fs, "gamma", *vk, publicWitness); err != nil {
return err
}
bgamma, err := fs.ComputeChallenge("gamma")
if err != nil {
return err
Expand Down

0 comments on commit 249f3bd

Please sign in to comment.