Skip to content

Commit

Permalink
Add comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuroitaki committed Jan 27, 2025
1 parent fd074f4 commit 26bf2c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/examples/attestation/present.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async fn create_presentation(example_type: &ExampleType) -> Result<(), Box<dyn s
let mut builder = secrets.transcript_proof_builder();

// Here is where we reveal all or some of the parts we committed in `prove.rs`
// via `commit_transcript` previously.
// via `transcript_commit` previously.
let request = &transcript.requests[0];

// Reveal all committed request headers (key + value) except for the values of
Expand Down
3 changes: 2 additions & 1 deletion crates/examples/attestation/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ async fn notarize(
let mut builder = TranscriptCommitConfig::builder(prover.transcript());

// This commits to various parts of the transcript separately (e.g. request
// headers, response headers, response body and more).
// headers, response headers, response body and more). See https://docs.tlsnotary.org//protocol/commit_strategy.html
// for other strategies that can be used to generate commitments.
DefaultHttpCommitter::default().commit_transcript(&mut builder, &transcript)?;

prover.transcript_commit(builder.build()?);
Expand Down

0 comments on commit 26bf2c0

Please sign in to comment.