INNER CODE UNIT · Go

bytes

Consensys/gnark-crypto · ecc/bn254/fr/mimc/test_vectors/main.go:47

		bytes = hsh.Sum(nil)

		x.SetBytes(bytes)
		tests[i].Out = "0x" + x.Text(16)
	}

	bytes, err = json.MarshalIndent(tests, "", "\t")
	assertNoError(err)
	err = os.WriteFile("./vectors.json", bytes, 0)
	assertNoError(err)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…