witness

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: ISC Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB added in v0.2.0

func OpenDB(dbPath string) (*sqlite.Conn, error)

Types

type Witness

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

func NewWitness

func NewWitness(dbPath, name string, key crypto.Signer, log *slog.Logger) (*Witness, error)

func (*Witness) Close

func (w *Witness) Close() error

func (*Witness) ServeHTTP

func (w *Witness) ServeHTTP(rw http.ResponseWriter, r *http.Request)

func (*Witness) VerifierKey added in v0.3.0

func (w *Witness) VerifierKey() string

Jump to

Keyboard shortcuts

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