You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
signal is_object_key <== IsEqualArray(2)([current_value,[1,0]]);
376
378
signal is_object_value <== IsEqualArray(2)([current_value,[1,1]]);
377
379
signal is_array <== IsEqual()([current_value[0], 2]);
378
380
379
381
signal not_to_hash <== IsZero()(parsing_string * next_parsing_string + next_parsing_primitive);
380
-
signal hash_0 <== is_object_key * stateHash[0].out; // TODO: I think these may not be needed
381
-
signal hash_1 <== (is_object_value + is_array) * stateHash[1].out; // TODO: I think these may not be needed
382
+
signal hash_0 <== is_object_key * stateHash[0][n]; // TODO: I think these may not be needed
383
+
signal hash_1 <== (is_object_value + is_array) * stateHash[1][n]; // TODO: I think these may not be needed
382
384
383
385
signal monomial_is_zero <== IsZero()(monomial);
384
386
signal increased_power <== monomial * polynomial_input;
385
387
next_monomial <== (1- not_to_hash) * (monomial_is_zero + increased_power); // if monomial is zero and to_hash, then this treats monomial as if it is 1, else we increment the monomial
386
388
signal option_hash <== hash_0 + hash_1 +byte* next_monomial;
0 commit comments