File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ pub struct VerifyProofInAggModeArgs {
325325 proving_system : ProvingSystemArg ,
326326 #[ arg( name = "Public input file name" , long = "public_input" ) ]
327327 pub_input_file_name : Option < PathBuf > ,
328- #[ arg( name = "Verification key hash" , long = "vk" ) ]
329- verification_key_hash : Option < PathBuf > ,
328+ #[ arg( name = "Verification key hash" , long = "vk" , required = true ) ]
329+ verification_key_hash : PathBuf ,
330330}
331331
332332#[ derive( Args , Debug ) ]
@@ -792,11 +792,7 @@ async fn main() -> Result<(), AlignedError> {
792792 AlignedCommands :: VerifyProofInAggMode ( args) => {
793793 let proof_data = match args. proving_system {
794794 ProvingSystemArg :: SP1 => {
795- let Some ( vk_hash) = args. verification_key_hash else {
796- error ! ( "VK hash is necessary for sp1" ) ;
797- return Ok ( ( ) ) ;
798- } ;
799- let vk = read_file ( vk_hash) ?
795+ let vk = read_file ( args. verification_key_hash ) ?
800796 . try_into ( )
801797 . expect ( "Invalid hexadecimal encoded vk hash" ) ;
802798
You can’t perform that action at this time.
0 commit comments