@@ -75,7 +75,7 @@ impl ProgramOutput {
7575 /// The bootloader output for a single task is:
7676 /// `[num_tasks, output_size, program_hash, ...task_output...]`
7777 ///
78- /// We replace `num_tasks` with `[PROOF_VERSION_V0 , program_variant]` and skip `output_size`,
78+ /// We replace `num_tasks` with `[PROOF_VERSION_V1 , program_variant]` and skip `output_size`,
7979 /// which is a bootloader-internal field not part of the proof facts.
8080 pub fn try_into_proof_facts (
8181 & self ,
@@ -90,7 +90,7 @@ impl ProgramOutput {
9090 return Err ( ProgramOutputError :: TooShort ( self . 0 . len ( ) ) ) ;
9191 }
9292 // Add the proof version and variant markers in place of num_tasks.
93- let mut facts = vec ! [ ProofVersion :: V0 . as_felt( ) ] ;
93+ let mut facts = vec ! [ ProofVersion :: V1 . as_felt( ) ] ;
9494 facts. push ( program_variant) ;
9595 // Skip num_tasks (index 0) and output_size (index 1); add the task output
9696 // (program_hash followed by the virtual OS output).
@@ -107,17 +107,17 @@ impl From<Vec<Felt>> for ProgramOutput {
107107
108108/// Reconstructs the output preimage from proof facts for circuit verification.
109109///
110- /// Proof facts layout: `[PROOF_VERSION_V0 , variant, program_hash, ...task_output]`
110+ /// Proof facts layout: `[PROOF_VERSION_V* , variant, program_hash, ...task_output]`
111111/// Output preimage layout: `[num_tasks=1, output_size, program_hash, ...task_output]`
112112/// where `output_size = task_content.len() + 1` (includes itself).
113113pub fn reconstruct_output_preimage (
114114 proof_facts : & ProofFacts ,
115115) -> Result < Vec < Felt > , VerifyProofError > {
116- // Proof facts must contain at least [PROOF_VERSION_V0 , variant, program_hash].
116+ // Proof facts must contain at least [PROOF_VERSION_V* , variant, program_hash].
117117 if proof_facts. 0 . len ( ) < 3 {
118118 return Err ( VerifyProofError :: ProofFactsTooShort { length : proof_facts. 0 . len ( ) } ) ;
119119 }
120- // Skip PROOF_VERSION_V0 (index 0) and variant (index 1).
120+ // Skip PROOF_VERSION_V* (index 0) and variant (index 1).
121121 let task_content = & proof_facts. 0 [ 2 ..] ;
122122 let output_size = Felt :: from (
123123 u64:: try_from ( task_content. len ( ) + 1 ) . expect ( "task content length exceeds u64::MAX" ) ,
0 commit comments