mirror of
https://github.com/arnaucube/go-snark-study.git
synced 2026-02-02 17:26:41 +01:00
cli
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package r1csqap
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"math/big"
|
||||
|
||||
"github.com/arnaucube/go-snark/fields"
|
||||
@@ -28,6 +29,17 @@ func ArrayOfBigZeros(num int) []*big.Int {
|
||||
}
|
||||
return r
|
||||
}
|
||||
func BigArraysEqual(a, b []*big.Int) bool {
|
||||
if len(a) != len(b) {
|
||||
return false
|
||||
}
|
||||
for i := 0; i < len(a); i++ {
|
||||
if !bytes.Equal(a[i].Bytes(), b[i].Bytes()) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// PolynomialField is the Polynomial over a Finite Field where the polynomial operations are performed
|
||||
type PolynomialField struct {
|
||||
|
||||
Reference in New Issue
Block a user