Skip to content

Commit 619f83a

Browse files
committed
Add VK as mandatory param
1 parent 951452f commit 619f83a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

batcher/aligned/src/main.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)