Documentation ¶
Index ¶
- func Flags(v *viper.Viper, f *pflag.FlagSet)
- func GetKeystorePassword(v *viper.Viper) string
- func GetKeystorePath(v *viper.Viper) string
- func KeystorePasswordFlag(v *viper.Viper, f *pflag.FlagSet)
- func KeystorePathFlag(v *viper.Viper, f *pflag.FlagSet)
- type Config
- type KeyStore
- func (s *KeyStore) CreateAccount(_ context.Context) (*keystore.Account, error)
- func (s *KeyStore) HasAccount(_ context.Context, addr gethcommon.Address) (bool, error)
- func (s *KeyStore) Import(_ context.Context, hexkey string) (*keystore.Account, error)
- func (s *KeyStore) SignTx(_ context.Context, addr gethcommon.Address, tx *gethtypes.Transaction, ...) (*gethtypes.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeystorePassword ¶ added in v0.3.1
func GetKeystorePath ¶ added in v0.3.1
func KeystorePasswordFlag ¶ added in v0.3.1
KeystorePasswordFlag register flag for the password used to encrypt keys in keystore
Types ¶
type KeyStore ¶
type KeyStore struct {
// contains filtered or unexported fields
}
func (*KeyStore) CreateAccount ¶
func (*KeyStore) HasAccount ¶ added in v0.3.5
func (*KeyStore) SignTx ¶
func (s *KeyStore) SignTx(_ context.Context, addr gethcommon.Address, tx *gethtypes.Transaction, chainID *big.Int) (*gethtypes.Transaction, error)
Click to show internal directories.
Click to hide internal directories.