Skip to content

Commit

Permalink
nit: add comments to Signer interface (#1228)
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Sanders <jsand@google.com>
  • Loading branch information
Jake Sanders authored Dec 16, 2021
1 parent f2e034d commit b2d6393
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pkg/cosign/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import (
"github.com/sigstore/cosign/pkg/oci"
)

// Signer signs payloads in the form of `oci.Signature`s
type Signer interface {
// Sign signs the given payload, returning the results as an `oci.Signature` which can be varified using the returned `crypto.PublicKey`.
Sign(ctx context.Context, payload io.Reader) (oci.Signature, crypto.PublicKey, error)
}

0 comments on commit b2d6393

Please sign in to comment.