1 parent 619ea83 commit 6818628Copy full SHA for 6818628
1 file changed
tests/test_zpie.c
@@ -127,14 +127,19 @@ void test_mimc_hash()
127
{
128
zpie_element h, x_in, k;
129
130
- zpie_init_public(&h);
+ zpie_init(&h);
131
zpie_init(&x_in);
132
zpie_init(&k);
133
134
zpie_input(&x_in, "1234");
135
zpie_input(&k, "112233445566");
136
137
mimc7(&h, &x_in, &k);
138
+
139
+ zpie_element h_check;
140
+ zpie_init(&h_check);
141
+ zpie_input(&h_check, "10547064275071378430963758417966601760652600083618672830627388988175151799431");
142
+ zpie_assert_equal(&h_check, &h);
143
}
144
145
// Test that the prover produces the same proof when randomness is disabled
0 commit comments