doc(example): add comments on verifying custom extension (#788)

* Add comments.

* Fix comment.

---------

Co-authored-by: yuroitaki <>
This commit is contained in:
yuroitaki
2025-04-25 11:18:47 +08:00
committed by GitHub
parent 41e215f912
commit 6623734ca0
2 changed files with 2 additions and 1 deletions

View File

@@ -26,7 +26,7 @@
//! (disallowed by default). A Notary may also be configured to
//! [validate](crate::attestation::AttestationConfigBuilder::extension_validator)
//! any extensions requested by a Prover using custom application logic.
//! Additionally, they may
//! Additionally, a Notary may
//! [include](crate::attestation::AttestationBuilder::extension)
//! their own extensions.

View File

@@ -50,6 +50,7 @@ async fn verify_presentation(example_type: &ExampleType) -> Result<(), Box<dyn s
server_name,
connection_info,
transcript,
// extensions, // Optionally, verify any custom extensions from prover/notary.
..
} = presentation.verify(&provider).unwrap();