mirror of
https://github.com/arnaucube/go-iden3-crypto.git
synced 2026-02-07 11:36:41 +01:00
Remove field package which is no longer used
This commit is contained in:
@@ -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()))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user