Skip to content

Commit 9c466a8

Browse files
docs: minor edits to docs (#370)
* minor edits to docs Signed-off-by: Trishank Karthik Kuppusamy <[email protected]> * Update verification.md Signed-off-by: Trishank Karthik Kuppusamy <[email protected]> * Update verification.md Signed-off-by: Trishank Karthik Kuppusamy <[email protected]> * Update signed_entity.go `WithoutAnyObserverTimestampsUnsafe` doesn't seem to exist anymore Signed-off-by: Trishank Karthik Kuppusamy <[email protected]> --------- Signed-off-by: Trishank Karthik Kuppusamy <[email protected]>
1 parent 729246f commit 9c466a8

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

docs/signing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This document will walk you through using `sigstore-go` to generate a Sigstore b
1212
Clone this repository and run the following command:
1313

1414
```shell
15-
$ make examples
15+
$ make build-examples
1616
$ go install ./examples/sigstore-go-signing
1717
```
1818

docs/verification.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,8 @@ Going through this step-by-step, we'll start by loading the trusted root from th
6363
if err != nil {
6464
panic(err)
6565
}
66-
trustedrootJSON, err := client.GetTarget("trusted_root.json")
67-
if err != nil {
68-
panic(err)
69-
}
7066

71-
trustedMaterial, err := root.NewTrustedRootFromJSON(trustedrootJSON)
67+
trustedMaterial, err := root.GetTrustedRoot(client)
7268
if err != nil {
7369
panic(err)
7470
}
@@ -201,12 +197,8 @@ func main() {
201197
if err != nil {
202198
panic(err)
203199
}
204-
trustedrootJSON, err := client.GetTarget("trusted_root.json")
205-
if err != nil {
206-
panic(err)
207-
}
208200

209-
trustedMaterial, err := root.NewTrustedRootFromJSON(trustedrootJSON)
201+
trustedMaterial, err := root.GetTrustedRoot(client)
210202
if err != nil {
211203
panic(err)
212204
}

pkg/verify/signed_entity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func WithCurrentTime() VerifierOption {
192192
func (c *VerifierConfig) Validate() error {
193193
if !c.requireObserverTimestamps && !c.requireSignedTimestamps && !c.requireIntegratedTimestamps && !c.useCurrentTime {
194194
return errors.New("when initializing a new SignedEntityVerifier, you must specify at least one of " +
195-
"WithObserverTimestamps(), WithSignedTimestamps(), WithIntegratedTimestamps(), or WithoutAnyObserverTimestampsUnsafe()")
195+
"WithObserverTimestamps(), WithSignedTimestamps(), or WithIntegratedTimestamps()")
196196
}
197197

198198
return nil

0 commit comments

Comments
 (0)