Skip to content

Commit

Permalink
adding constants defined by notary project spec
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Oct 8, 2024
1 parent e90546b commit 1d9dc86
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions signature/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ type SignatureMediaType string
// Reference: https://github.com/notaryproject/notaryproject/blob/main/specs/signing-scheme.md
type SigningScheme string

// Constants supported by notation signature.
const (
// MediaTypePayloadV1 is the supported content type for signature's payload.
// Reference: https://github.com/notaryproject/specifications/blob/main/specs/signature-specification.md#payload
MediaTypePayloadV1 = "application/vnd.cncf.notary.payload.v1+json"

// AnnotationX509ChainThumbprint contains the list of SHA-256 fingerprints
// of signing certificate and certificate chain.
// Reference: https://github.com/notaryproject/specifications/blob/main/specs/signature-specification.md#signature
AnnotationX509ChainThumbprint = "io.cncf.notary.x509chain.thumbprint#S256"
)

// SigningSchemes supported by notation.
const (
// notary.x509 signing scheme.
Expand Down

0 comments on commit 1d9dc86

Please sign in to comment.