sigstore

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtensionMimeType = "application/vnd.dev.sigstore.verificationmaterial;version=0.3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	*Verifier
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner() *Signer

func (*Signer) KeyID

func (s *Signer) KeyID() (string, error)

func (*Signer) Sign

func (s *Signer) Sign(_ context.Context, data []byte) ([]byte, error)

type Verifier

type Verifier struct {
	// contains filtered or unexported fields
}

func NewVerifierFromIdentityAndIssuer

func NewVerifierFromIdentityAndIssuer(identity, issuer string) *Verifier

func (*Verifier) ExpectedExtensionKind

func (v *Verifier) ExpectedExtensionKind() string

func (*Verifier) KeyID

func (v *Verifier) KeyID() (string, error)

func (*Verifier) Public

func (v *Verifier) Public() crypto.PublicKey

func (*Verifier) SetExtension

func (v *Verifier) SetExtension(ext *structpb.Struct)

func (*Verifier) Verify

func (v *Verifier) Verify(_ context.Context, data, sig []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL