Skip to content

Commit

Permalink
Update verification example (#84)
Browse files Browse the repository at this point in the history
Missing the now-required timestamp verification. Removes online verification from the example since it's not necessary too

Signed-off-by: Hayden B <[email protected]>
  • Loading branch information
haydentherapper authored Jan 27, 2024
1 parent d3d74f1 commit 9fd0108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 9fd0108

Please sign in to comment.