@@ -72,7 +72,7 @@ impl ProgramOutput {
7272 /// The bootloader output for a single task is:
7373 /// `[num_tasks, output_size, program_hash, ...task_output...]`
7474 ///
75- /// We replace `num_tasks` with `[PROOF_VERSION_V0 , program_variant]` and skip `output_size`,
75+ /// We replace `num_tasks` with `[PROOF_VERSION_V1 , program_variant]` and skip `output_size`,
7676 /// which is a bootloader-internal field not part of the proof facts.
7777 pub fn try_into_proof_facts (
7878 & self ,
@@ -87,7 +87,7 @@ impl ProgramOutput {
8787 return Err ( ProgramOutputError :: TooShort ( self . 0 . len ( ) ) ) ;
8888 }
8989 // Add the proof version and variant markers in place of num_tasks.
90- let mut facts = vec ! [ ProofVersion :: V0 . as_felt( ) ] ;
90+ let mut facts = vec ! [ ProofVersion :: V1 . as_felt( ) ] ;
9191 facts. push ( program_variant) ;
9292 // Skip num_tasks (index 0) and output_size (index 1); add the task output
9393 // (program_hash followed by the virtual OS output).
@@ -104,17 +104,17 @@ impl From<Vec<Felt>> for ProgramOutput {
104104
105105/// Reconstructs the output preimage from proof facts for circuit verification.
106106///
107- /// Proof facts layout: `[PROOF_VERSION_V0 , variant, program_hash, ...task_output]`
107+ /// Proof facts layout: `[PROOF_VERSION_V* , variant, program_hash, ...task_output]`
108108/// Output preimage layout: `[num_tasks=1, output_size, program_hash, ...task_output]`
109109/// where `output_size = task_content.len() + 1` (includes itself).
110110pub fn reconstruct_output_preimage (
111111 proof_facts : & ProofFacts ,
112112) -> Result < Vec < Felt > , VerifyProofError > {
113- // Proof facts must contain at least [PROOF_VERSION_V0 , variant, program_hash].
113+ // Proof facts must contain at least [PROOF_VERSION_V* , variant, program_hash].
114114 if proof_facts. 0 . len ( ) < 3 {
115115 return Err ( VerifyProofError :: ProofFactsTooShort { length : proof_facts. 0 . len ( ) } ) ;
116116 }
117- // Skip PROOF_VERSION_V0 (index 0) and variant (index 1).
117+ // Skip PROOF_VERSION_V* (index 0) and variant (index 1).
118118 let task_content = & proof_facts. 0 [ 2 ..] ;
119119 let output_size = Felt :: from (
120120 u64:: try_from ( task_content. len ( ) + 1 ) . expect ( "task content length exceeds u64::MAX" ) ,
0 commit comments