Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeyFromKeystore ¶
func NewKeyFromKeystore(cfg KeystoreFileConfig) (*ecdsa.PrivateKey, error)
NewKeyFromKeystore creates a private key from a keystore file
Types ¶
type KeystoreFileConfig ¶
type KeystoreFileConfig struct { // Path is the file path for the key store file Path string `mapstructure:"Path"` // Password is the password to decrypt the key store file Password string `mapstructure:"Password"` }
KeystoreFileConfig has all the information needed to load a private key from a key store file
type Logger ¶
type Logger interface { Fatalf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Debug(args ...interface{}) Debugf(format string, args ...interface{}) }
Logger is an interface that defines the methods to log messages
Click to show internal directories.
Click to hide internal directories.