Remove field package which is no longer used

This commit is contained in:
arnaucube
2020-03-05 17:39:51 +01:00
parent 16a8a18a6d
commit 4750e9c83c
5 changed files with 3 additions and 197 deletions

View File

@@ -36,7 +36,7 @@ func generateConstantsData() constantsData {
func getConstants(seed string, nRounds int) []*ff.Element {
cts := make([]*ff.Element, nRounds)
cts[0] = ff.NewElement().SetZero()
cts[0] = ff.NewElement()
c := new(big.Int).SetBytes(crypto.Keccak256([]byte(SEED)))
for i := 1; i < nRounds; i++ {
c = new(big.Int).SetBytes(crypto.Keccak256(c.Bytes()))

View File

@@ -21,9 +21,6 @@ func TestMIMC7Generic(t *testing.T) {
b2 := big.NewInt(int64(2))
b3 := big.NewInt(int64(3))
// r, ok := new(big.Int).SetString("21888242871839275222246405745257275088548364400416034343698204186575808495617", 10)
// assert.True(t, ok)
bigArray := []*big.Int{b1, b2, b3}
// Generic Hash