small refactor of names

This commit is contained in:
jtguibas
2022-10-10 17:59:55 -07:00
parent 7367106b04
commit a058df6099
10 changed files with 236 additions and 323 deletions

View File

@@ -1,7 +1,7 @@
package utils
import (
. "gnark-ed25519/goldilocks"
. "gnark-ed25519/field"
"math/big"
"github.com/consensys/gnark/frontend"
@@ -26,8 +26,8 @@ func StrArrayToFrontendVariableArray(input []string) []frontend.Variable {
return output
}
func Uint64ArrayToGoldilocksElementArray(input []uint64) []GoldilocksElement {
var output []GoldilocksElement
func Uint64ArrayToFArray(input []uint64) []F {
var output []F
for i := 0; i < len(input); i++ {
output = append(output, emulated.NewElement[emulated.Goldilocks](input[i]))
}