Skip to content

Commit

Permalink
Add some notes to 'transcript_verifier_sync'
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiyong Fang <[email protected]>
  • Loading branch information
zhiyong1997 authored Jan 17, 2025
1 parent 16a67f7 commit fbbf6dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions transcript/src/transcript_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ where
}
}

/// sync verifier transcript state. incurs an additional hash if self.world_size > 1
/// corresponding part to the transcript_root_broadcast on verifier side
/// Note: Currently, the verifier is assumed to run on a single core with no mpi sync,
/// the word 'sync' here refers to the verifier syncing up with the prover's transcript state,
/// which is updated by 'transcript_root_broadcast' if mpi_size > 1.
/// This can be seen as a correspondance to 'transcript_root_broadcast' from the verifier side.
pub fn transcript_verifier_sync<F, T>(transcript: &mut T, mpi_config: &MPIConfig)
where
F: Field,
Expand Down

0 comments on commit fbbf6dc

Please sign in to comment.