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 CLIDirOrPwd ¶
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.
Click to show internal directories.
Click to hide internal directories.