@@ -18,15 +18,15 @@ use log::{error, info};
1818use transaction:: eip2718:: TypedTransaction ;
1919
2020use aligned_sdk:: errors:: { AlignedError , SubmitError } ;
21- use aligned_sdk:: sdk:: { get_verification_key_commitment , submit_multiple, verify_proof_onchain} ;
21+ use aligned_sdk:: sdk:: { get_commitment , submit_multiple, verify_proof_onchain} ;
2222use aligned_sdk:: types:: AlignedVerificationData ;
2323use aligned_sdk:: types:: Chain ;
2424use aligned_sdk:: types:: ProvingSystemId ;
2525use aligned_sdk:: types:: VerificationData ;
2626
2727use crate :: AlignedCommands :: DepositToBatcher ;
28+ use crate :: AlignedCommands :: GetCommitment ;
2829use crate :: AlignedCommands :: GetUserBalance ;
29- use crate :: AlignedCommands :: GetVerificationKeyCommitment ;
3030use crate :: AlignedCommands :: Submit ;
3131use crate :: AlignedCommands :: VerifyProofOnchain ;
3232
@@ -44,13 +44,9 @@ pub enum AlignedCommands {
4444 #[ clap( about = "Verify the proof was included in a verified batch on Ethereum" ) ]
4545 VerifyProofOnchain ( VerifyProofOnchainArgs ) ,
4646
47- // GetVerificationKey, command name is get-vk-commitment
48- #[ clap(
49- about = "Create verification key for proving system" ,
50- name = "get-vk-commitment"
51- ) ]
52- GetVerificationKeyCommitment ( GetVerificationKeyCommitmentArgs ) ,
53- // GetVericiationKey, command name is get-vk-commitment
47+ // Get commitment for file, command name is get-commitment
48+ #[ clap( about = "Get commitment for file" , name = "get-commitment" ) ]
49+ GetCommitment ( GetCommitmentArgs ) ,
5450 #[ clap(
5551 about = "Deposits Ethereum in the batcher to pay for proofs" ,
5652 name = "deposit-to-batcher"
@@ -155,7 +151,7 @@ pub struct VerifyProofOnchainArgs {
155151
156152#[ derive( Parser , Debug ) ]
157153#[ command( version, about, long_about = None ) ]
158- pub struct GetVerificationKeyCommitmentArgs {
154+ pub struct GetCommitmentArgs {
159155 #[ arg( name = "File name" , long = "input" ) ]
160156 input_file : PathBuf ,
161157 #[ arg( name = "Output file" , long = "output" ) ]
@@ -336,10 +332,10 @@ async fn main() -> Result<(), AlignedError> {
336332 info ! ( "Your proof was not included in the batch." ) ;
337333 }
338334 }
339- GetVerificationKeyCommitment ( args) => {
335+ GetCommitment ( args) => {
340336 let content = read_file ( args. input_file ) ?;
341337
342- let hash = get_verification_key_commitment ( & content) ;
338+ let hash = get_commitment ( & content) ;
343339
344340 info ! ( "Commitment: {}" , hex:: encode( hash) ) ;
345341 if let Some ( output_file) = args. output_file {
0 commit comments