diff --git a/docs/signing.md b/docs/signing.md index 404545f..110dfe6 100644 --- a/docs/signing.md +++ b/docs/signing.md @@ -12,7 +12,7 @@ This document will walk you through using `sigstore-go` to generate a Sigstore b Clone this repository and run the following command: ```shell -$ make examples +$ make build-examples $ go install ./examples/sigstore-go-signing ``` diff --git a/docs/verification.md b/docs/verification.md index b0b16c4..3858db8 100644 --- a/docs/verification.md +++ b/docs/verification.md @@ -63,12 +63,8 @@ Going through this step-by-step, we'll start by loading the trusted root from th if err != nil { panic(err) } - trustedrootJSON, err := client.GetTarget("trusted_root.json") - if err != nil { - panic(err) - } - trustedMaterial, err := root.NewTrustedRootFromJSON(trustedrootJSON) + trustedMaterial, err := root.GetTrustedRoot(client) if err != nil { panic(err) } @@ -201,12 +197,8 @@ func main() { if err != nil { panic(err) } - trustedrootJSON, err := client.GetTarget("trusted_root.json") - if err != nil { - panic(err) - } - trustedMaterial, err := root.NewTrustedRootFromJSON(trustedrootJSON) + trustedMaterial, err := root.GetTrustedRoot(client) if err != nil { panic(err) } diff --git a/pkg/verify/signed_entity.go b/pkg/verify/signed_entity.go index 857596d..918bf54 100644 --- a/pkg/verify/signed_entity.go +++ b/pkg/verify/signed_entity.go @@ -192,7 +192,7 @@ func WithCurrentTime() VerifierOption { func (c *VerifierConfig) Validate() error { if !c.requireObserverTimestamps && !c.requireSignedTimestamps && !c.requireIntegratedTimestamps && !c.useCurrentTime { return errors.New("when initializing a new SignedEntityVerifier, you must specify at least one of " + - "WithObserverTimestamps(), WithSignedTimestamps(), WithIntegratedTimestamps(), or WithoutAnyObserverTimestampsUnsafe()") + "WithObserverTimestamps(), WithSignedTimestamps(), or WithIntegratedTimestamps()") } return nil