Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Nov 9, 2022
1 parent 223b4e6 commit 293d7a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notation/notation.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type payload struct {
// and packing in various signature formats.
type Signer interface {
// Sign signs the artifact described by its descriptor,
// and returns the signature, SignerInfo, and envelopeMediaType.
// and returns the signature and SignerInfo.
Sign(ctx context.Context, desc Descriptor, envelopeMediaType string, opts SignOptions) ([]byte, *signature.SignerInfo, error)
}

Expand Down Expand Up @@ -167,8 +167,8 @@ type VerificationOutcome struct {

// Verifier is a generic interface for verifying an artifact.
type Verifier interface {
// Verify verifies the signature blob and returns the verified descriptor
// upon successful verification.
// Verify verifies the signature blob and returns the signature blob
// descriptor upon successful verification.
Verify(ctx context.Context, signature []byte, opts VerifyOptions) (Descriptor, *VerificationOutcome, error)

// TrustPolicyDocument gets the validated trust policy document.
Expand Down

0 comments on commit 293d7a7

Please sign in to comment.