mirror of
https://github.com/tlsnotary/tlsn.git
synced 2026-01-09 14:48:13 -05:00
doc(example): add comments on verifying custom extension (#788)
* Add comments. * Fix comment. --------- Co-authored-by: yuroitaki <>
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user