From 391c11f964a1bd190931fdf16aebcab7ae9ec635 Mon Sep 17 00:00:00 2001 From: Hayden B Date: Fri, 26 Jan 2024 16:23:12 -0800 Subject: [PATCH] Update verification example Missing the now-required timestamp verification. Removes online verification from the example since it's not necessary too Signed-off-by: Hayden B --- docs/verification.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/verification.md b/docs/verification.md index 267a885b..93d77e78 100644 --- a/docs/verification.md +++ b/docs/verification.md @@ -72,7 +72,7 @@ Going through this step-by-step, we'll start by loading the trusted root from th Next, we'll create a verifier with some options, which will enable SCT verification, ensure a single transparency log entry, and perform online verification: ```go - sev, err := verify.NewSignedEntityVerifier(trustedMaterial, verify.WithSignedCertificateTimestamps(1), verify.WithTransparencyLog(1), verify.WithOnlineVerification()) + sev, err := verify.NewSignedEntityVerifier(trustedMaterial, verify.WithSignedCertificateTimestamps(1), verify.WithTransparencyLog(1), verify.WithObserverTimestamps(1)) if err != nil { panic(err) } @@ -197,7 +197,7 @@ func main() { panic(err) } - sev, err := verify.NewSignedEntityVerifier(trustedMaterial, verify.WithSignedCertificateTimestamps(1), verify.WithTransparencyLog(1), verify.WithOnlineVerification()) + sev, err := verify.NewSignedEntityVerifier(trustedMaterial, verify.WithSignedCertificateTimestamps(1), verify.WithTransparencyLog(1), verify.WithObserverTimestamps(1)) if err != nil { panic(err) }