Skip to content

Commit

Permalink
refactor: rename sigstore verify function
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jan 27, 2025
1 parent 3f26c12 commit fadcd1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (s *SecureClient) Verify() (*EnclaveState, error) {
return nil, fmt.Errorf("failed to fetch attestation bundle: %v", err)
}

codeMeasurements, err := sigstore.VerifyMeasurementAttestation(sigstoreBundle, eifHash, s.repo)
codeMeasurements, err := sigstore.VerifyAttestation(sigstoreBundle, eifHash, s.repo)
if err != nil {
return nil, fmt.Errorf("failed to verify attested measurements: %v", err)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/sigstore/sigstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ func fetchTrustRoot() (*root.TrustedRoot, error) {
return root.NewTrustedRootFromJSON(trustRootJSON)
}

// VerifyMeasurementAttestation verifies the attested measurements of an EIF measurement
// VerifyAttestation verifies the attested measurements of an enclave image
// against a trusted root (Sigstore) and returns the measurement payload contained in the DSSE.
func VerifyMeasurementAttestation(
func VerifyAttestation(
bundleJSON []byte,
hexDigest, repo string,
) (*attestation.Measurement, error) {
Expand Down

0 comments on commit fadcd1f

Please sign in to comment.