signer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MemoryScheme = "memory"

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, signer string) (signature.Signer, error)

func NewTimestampingCertWithChain added in v0.4.0

func NewTimestampingCertWithChain(ctx context.Context, pub crypto.PublicKey, signer signature.Signer, chain []*x509.Certificate) ([]*x509.Certificate, error)

Generate a timestamping certificate for pub using the signer. The chain must verify the signer's public key if provided. Otherwise, a self-signed root CA will be generated.

Types

type Memory

type Memory struct {
	signature.ECDSASignerVerifier
}

returns an in-memory signer and verify, used for spinning up local instances

func NewMemory

func NewMemory() (*Memory, error)

Jump to

Keyboard shortcuts

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