core

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output interface {
	Printf(format string, a ...interface{})
	Println(a ...interface{})
}

type Signer

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

func NewSigner

func NewSigner(
	output Output,
	key, namespace, hash, sigFile string,
) (*Signer, error)

func (*Signer) Sign

func (s *Signer) Sign(file string) error

type Verifier

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

func NewVerifier

func NewVerifier(
	output Output,
	namespace, hash, sigFile string,
	validator publickeys.Validator,
) *Verifier

func (*Verifier) Verify

func (v *Verifier) Verify(file string) error

Jump to

Keyboard shortcuts

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