-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: the CLI does not display enough information about what it is doing. Solution: add logs. The CLI now uses the `log` and `env_logger` crate to print messages. This will simplify the addition of a verbosity flag down the line.
- Loading branch information
1 parent
445a6fd
commit cd126ba
Showing
6 changed files
with
73 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
use log::info; | ||
use stone_prover_sdk::error::VerifierError; | ||
use stone_prover_sdk::verifier::run_verifier; | ||
|
||
use crate::cli::VerifyArgs; | ||
|
||
pub fn verify(args: VerifyArgs) -> Result<(), VerifierError> { | ||
run_verifier(args.proof_file.as_path()) | ||
info!("verification in progress..."); | ||
run_verifier(args.proof_file.as_path())?; | ||
info!("verification completed!"); | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters