signer

package
v0.2300.9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Package signer implements helpers for configuring the signer.

Index

Constants

View Source
const (
	// CfgSigner is the flag used to specify the backend of the signer.
	CfgSigner = "signer.backend"

	// CfgCLISignerDir is the flag used to specify the directory with the
	// entity files, for the purpose of some of the node sub-command's
	// wonky behavior.
	//
	// It also contains the private keys of a signer if using a file backend.
	CfgCLISignerDir = "signer.dir"
)

Variables

View Source
var (
	// Flags has the signer related flags.
	Flags = flag.NewFlagSet("", flag.ContinueOnError)

	// CLIFlags has the oasis-node specific signer related flags.
	CLIFlags = flag.NewFlagSet("", flag.ContinueOnError)
)

Functions

func Backend

func Backend() string

Backend returns the configured signer backend name.

func CLIDirOrPwd

func CLIDirOrPwd() (string, error)

CLIDirOrPwd returns the directory with the entity files, (and the signer keys for file-based signer).

XXX: Why this doesn't use the perfectly good datadir is beyond me.

func NewFactory

func NewFactory(signerBackend, signerDir string, roles ...signature.SignerRole) (signature.SignerFactory, error)

NewFactory returns the appropriate SignerFactory based on flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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