Skip to content

Commit

Permalink
Print guest name
Browse files Browse the repository at this point in the history
  • Loading branch information
Vesnica committed Aug 16, 2022
1 parent 364b422 commit 58e2410
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/prover_pw.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use common::{encode_hex_u32, encode_hex_u8, PasswordRequest, Proof};
use methods::{PASSWORD_ELF, PASSWORD_ID};
use methods::{PASSWORD_ELF, PASSWORD_ID, PASSWORD_PATH};
use rand::{thread_rng, RngCore};
use risc0_zkp::core::sha::Digest;
use risc0_zkvm::host::Prover;
Expand All @@ -21,6 +21,7 @@ fn main() {
let vec = to_vec(&request).unwrap();
prover.add_input(&vec).unwrap();

println!("Executing {}", PASSWORD_PATH.split('/').last().unwrap());
let receipt = prover.run().unwrap();
let password_hash: Digest = from_slice(&receipt.get_journal_vec().unwrap()).unwrap();
println!("Password hash is: {}", &password_hash);
Expand Down

0 comments on commit 58e2410

Please sign in to comment.