File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub extern "C" fn verify_mina_state_ffi(
4747 }
4848 } ;
4949
50- // TODO(xqft): this can also be a batcher's pre-verification check
50+ // Checks the integrity of the public inputs, also checks if the states form a chain.
5151 let ( candidate_tip_state, bridge_tip_state, candidate_tip_state_hash) =
5252 match check_pub_inputs ( & proof, & pub_inputs) {
5353 Ok ( validated_data) => validated_data,
@@ -98,7 +98,7 @@ fn check_pub_inputs(
9898 . map ( |state| state. hash ( ) )
9999 . ok_or ( "failed to retrieve root state hash" . to_string ( ) ) ?;
100100 // Reconstructs the state hashes if the states form a chain, and compares them to the public
101- // input state hashes.
101+ // input state hashes. Does not compare the tip state hash.
102102 let mut state_hash = candidate_root_state_hash;
103103 for ( body_hash, expected_prev_state_hash) in proof
104104 . candidate_chain_states
You can’t perform that action at this time.
0 commit comments