From fbbf6dca5ba1bc5ee21d8f315fe179365372d1ce Mon Sep 17 00:00:00 2001 From: Zhiyong Fang Date: Thu, 16 Jan 2025 20:52:59 -0600 Subject: [PATCH] Add some notes to 'transcript_verifier_sync' Signed-off-by: Zhiyong Fang --- transcript/src/transcript_utils.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/transcript/src/transcript_utils.rs b/transcript/src/transcript_utils.rs index 7f713f6e..13b9b4d5 100644 --- a/transcript/src/transcript_utils.rs +++ b/transcript/src/transcript_utils.rs @@ -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(transcript: &mut T, mpi_config: &MPIConfig) where F: Field,