Skip to content

Commit

Permalink
doc: add docs to NewR1CS and NewSparseR1CS in system.go #985
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Jan 9, 2024
1 parent 7325f9d commit 5fda666
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 1 deletion.
4 changes: 4 additions & 0 deletions constraint/bls12-377/system.go

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

4 changes: 4 additions & 0 deletions constraint/bls12-381/system.go

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

4 changes: 4 additions & 0 deletions constraint/bls24-315/system.go

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

4 changes: 4 additions & 0 deletions constraint/bls24-317/system.go

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

4 changes: 4 additions & 0 deletions constraint/bn254/system.go

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

4 changes: 4 additions & 0 deletions constraint/bw6-633/system.go

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

4 changes: 4 additions & 0 deletions constraint/bw6-761/system.go

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

4 changes: 4 additions & 0 deletions constraint/tinyfield/system.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 @@ -25,11 +25,14 @@ type system struct {
field
}


// NewR1CS is a constructor for R1CS. It is meant to be use by gnark frontend only,
// and should not be used by gnark users. See groth16.NewCS(...) instead.
func NewR1CS(capacity int) *R1CS {
return newSystem(capacity, constraint.SystemR1CS)
}

// NewSparseR1CS is a constructor for SparseR1CS. It is meant to be use by gnark frontend only,
// and should not be used by gnark users. See plonk.NewCS(...) instead.
func NewSparseR1CS(capacity int) *SparseR1CS {
return newSystem(capacity, constraint.SystemSparseR1CS)
}
Expand Down

0 comments on commit 5fda666

Please sign in to comment.