notaryproject / notation-go

A collection of libraries for supporting sign and verify OCI artifacts. Based on Notary Project specifications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update `generate-signature` plugin command response data type

JeyJeyGao opened this issue · comments

type GenerateSignatureResponse struct {
KeyID string `json:"keyId"`
Signature []byte `json:"signature"`
SigningAlgorithm string `json:"signingAlgorithm"`
// Ordered list of certificates starting with leaf certificate
// and ending with root certificate.
CertificateChain [][]byte `json:"certificateChain"`
}

The type of SignatureAlgorithm field should be updated to be proto.SignatureAlgorithm instead of string

Plugin API has been fixed. We will not introduce any breaking change for v1.