Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Oct 2, 2024
1 parent bf95d44 commit 74f018a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/examples/attestation/prover.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Runs a simple Prover which connects to the Notary and notarizes a
// request/response from example.com. The Prover then generates a proof and
// request/response from example.com. The Prover then generates an attestation and
// writes it to disk.

use http_body_util::Empty;
Expand Down Expand Up @@ -107,7 +107,7 @@ async fn main() {
// Prepare for notarization.
let prover = prover.start_notarize();

// Build presentation (with or without redactions)
// Build presentation (with or without redaction)
let redact = false;
let presentation = build_presentation(redact, prover).await;

Expand Down
6 changes: 4 additions & 2 deletions crates/examples/attestation/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ use tlsn_core::{presentation::Presentation, CryptoProvider};

fn main() {
// Deserialize the proof
let json = std::fs::read_to_string("simple_attestation.json").unwrap();
let presentation: Presentation = serde_json::from_str(json.as_str()).unwrap();
let json = std::fs::read_to_string("simple_attestation.json")
.expect("Could not read `simple_attestation.json`");
let presentation: Presentation =
serde_json::from_str(json.as_str()).expect("Could not parse `simple_attestation.json`");

let provider = CryptoProvider::default();

Expand Down

0 comments on commit 74f018a

Please sign in to comment.